summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2022-09-01 11:21:14 +0200
committerDominik Holland <dominik.holland@qt.io>2022-09-01 13:00:15 +0200
commit06c4cb084376d93875aaf3d14600055a17cf8b83 (patch)
tree25eb22a1a69c78e61633dd4bfe18ca5a89a32210 /src
parent77c36eca33a4cc47621f2d128f70bc04f1aa6a1e (diff)
downloadqtapplicationmanager-06c4cb084376d93875aaf3d14600055a17cf8b83.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. Pick-to: 6.2 6.3 6.4 Fixes: QTBUG-106088 Change-Id: Idaa114efaed1a306aca3affd6f255d918f1a6d29 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'src')
-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);