From e10387d609a70401d359723de8ebbf0f35669e02 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sat, 14 May 2022 17:42:41 +0800 Subject: [PATCH] use qWaitForWindowExposed instead of qWaitForWindowActive The qWaitForWindowActive() function returns false when the test is run inside Xvfb and there is no window manager. Forwarded: no Last-Update: 2019-04-21 Gbp-Pq: Name wait_for_window_exposed.patch --- tests/auto/quicktest/signalspy/tst_signalspy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/quicktest/signalspy/tst_signalspy.cpp b/tests/auto/quicktest/signalspy/tst_signalspy.cpp index 0806f43c..32bbcedf 100644 --- a/tests/auto/quicktest/signalspy/tst_signalspy.cpp +++ b/tests/auto/quicktest/signalspy/tst_signalspy.cpp @@ -73,7 +73,7 @@ void tst_SignalSpy::testCount() window.resize(200, 200); window.setSource(testFileUrl("signalspy.qml")); window.show(); - QVERIFY(QTest::qWaitForWindowActive(&window)); + QVERIFY(QTest::qWaitForWindowExposed(&window)); QVERIFY(window.rootObject() != nullptr); QObject *mouseSpy = window.rootObject()->findChild("mouseSpy");