From dbb9888a45f4e1b87bb2d53da53f488fe7830234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Lefebvre?= Date: Wed, 9 Apr 2025 12:21:06 +0200 Subject: [PATCH] tst_QSizeGrip::hideAndShowOnWindowStateChange is flaky on Ubuntu tst_QSizeGrip::hideAndShowOnWindowStateChange is flaky on Ubuntu where the widget is not set to fullscreen when it should. Wait for the the widget to be exposed when shown the first time. Fix flakiness on Ubuntu 24.04 Pick-to: 6.5 Change-Id: I9f5ea9ebb58c7505f841e5420dd2c15e5f0f2799 Reviewed-by: Axel Spoerl (cherry picked from commit 5ced648febe51b8788bbc38d7a578d4f43b720aa) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit a40fdae4e7fa3c1734c92771bc5cf65e31ad8809) --- tests/auto/widgets/widgets/qsizegrip/tst_qsizegrip.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/widgets/widgets/qsizegrip/tst_qsizegrip.cpp b/tests/auto/widgets/widgets/qsizegrip/tst_qsizegrip.cpp index a543efe44e1..755e39e7dcc 100644 --- a/tests/auto/widgets/widgets/qsizegrip/tst_qsizegrip.cpp +++ b/tests/auto/widgets/widgets/qsizegrip/tst_qsizegrip.cpp @@ -85,6 +85,7 @@ void tst_QSizeGrip::hideAndShowOnWindowStateChange() else widget->show(); QTRY_VERIFY(sizeGrip->isVisible()); + QVERIFY(QTest::qWaitForWindowExposed(widget.data())); widget->showFullScreen(); QTRY_VERIFY(!sizeGrip->isVisible());