From 36d8cab490ff8619160169e6d379910676d66925 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Thu, 1 Sep 2022 11:21:14 +0200 Subject: 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 (cherry picked from commit 06c4cb084376d93875aaf3d14600055a17cf8b83) Reviewed-by: Qt Cherry-pick Bot --- src/tools/testrunner/testrunner.cpp | 1 - 1 file changed, 1 deletion(-) 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(typeId); - inst->init(); inst->setWindowShown(true); -- cgit v1.2.1