summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Lefebvre <[email protected]>2025-05-07 10:27:48 +0200
committerFrédéric Lefebvre <[email protected]>2025-06-01 14:07:43 +0200
commit4db3961ee140867e14f8e1d20173e85060bc6c50 (patch)
tree2675ffd30a6a8eff77a0baafd4e3a7cf7f9305d3
parent6c7f61f0817754b0abcf0a93ce5cf26fd5251cb4 (diff)
Fix flaky tst_QFocusEvent::checkReason_ActiveWindow on openSUSEHEADdev
tst_QFocusEvent::CheckReason_ActiveWindow is flaky on openSUSE where the childFocusWidgetOne is unable to receive focus after d has been hidden. This is due to some asynchronicity when setActive is being called while d is already active. Remove the call to activateWindow on d as it is already active by calling show. Pick-to: 6.9 6.8 6.5 Change-Id: Id01c6704122df42982d65d28ddb94d184d00d9aa Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r--tests/auto/other/qfocusevent/tst_qfocusevent.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/other/qfocusevent/tst_qfocusevent.cpp b/tests/auto/other/qfocusevent/tst_qfocusevent.cpp
index 8297b53ea15..c1b72d4d623 100644
--- a/tests/auto/other/qfocusevent/tst_qfocusevent.cpp
+++ b/tests/auto/other/qfocusevent/tst_qfocusevent.cpp
@@ -310,8 +310,6 @@ void tst_QFocusEvent::checkReason_ActiveWindow()
QDialog* d = new QDialog( testFocusWidget );
d->show();
QVERIFY(QTest::qWaitForWindowExposed(d));
-
- d->activateWindow(); // ### CDE
QVERIFY(QTest::qWaitForWindowActive(d));
QTRY_VERIFY(childFocusWidgetOne->focusOutEventRecieved);