diff options
author | Dominik Holland <dominik.holland@qt.io> | 2022-09-01 11:21:14 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-09-01 13:56:17 +0000 |
commit | 1b74b825d1a3bfc4ce945f1d9f6fb354ca185d41 (patch) | |
tree | 036af140d8a6dd7b0acfaf651f91f309ec8de829 | |
parent | 4dd79a29d91809e28531a7cb8b95a5066c7ab0a9 (diff) | |
download | qtapplicationmanager-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.cpp | 1 |
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); |