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 | 36d8cab490ff8619160169e6d379910676d66925 (patch) | |
tree | 3764f69ae00933a2bcc1d4a1447600f90b4c7375 | |
parent | 9dbcab30dd87b4710f985ab09f1d5a8431dfe312 (diff) | |
download | qtapplicationmanager-36d8cab490ff8619160169e6d379910676d66925.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 f2a5d6e7..60ba0e67 100644 --- a/src/tools/testrunner/testrunner.cpp +++ b/src/tools/testrunner/testrunner.cpp @@ -101,7 +101,6 @@ int TestRunner::exec(QQmlEngine *qmlEngine) int typeId = qmlTypeId("QtTest", 1, 2, "QTestRootObject"); QTestRootObject* inst = qmlEngine->singletonInstance<QTestRootObject*>(typeId); - inst->init(); inst->setWindowShown(true); |