summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2022-09-01 11:21:14 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-01 13:56:17 +0000
commit1b74b825d1a3bfc4ce945f1d9f6fb354ca185d41 (patch)
tree036af140d8a6dd7b0acfaf651f91f309ec8de829
parent4dd79a29d91809e28531a7cb8b95a5066c7ab0a9 (diff)
downloadqtapplicationmanager-1b74b825d1a3bfc4ce945f1d9f6fb354ca185d41.tar.gz
Fix appman-qmltestrunner initialization
Don't call QTestRootObject::init() before starting the test. This causes all variables to be reset, including hasTestCase and causes the event loop not to be started. Fixes: QTBUG-106088 Change-Id: Idaa114efaed1a306aca3affd6f255d918f1a6d29 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 06c4cb084376d93875aaf3d14600055a17cf8b83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/tools/testrunner/testrunner.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/testrunner/testrunner.cpp b/src/tools/testrunner/testrunner.cpp
index 7df2a982..fedab32e 100644
--- a/src/tools/testrunner/testrunner.cpp
+++ b/src/tools/testrunner/testrunner.cpp
@@ -75,7 +75,6 @@ int TestRunner::exec(QQmlEngine *qmlEngine)
int typeId = qmlTypeId("QtTest", 1, 2, "QTestRootObject");
QTestRootObject* inst = qmlEngine->singletonInstance<QTestRootObject*>(typeId);
- inst->init();
inst->setWindowShown(true);