summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2022-07-25 16:54:24 +0200
committerDimitrios Apostolou <jimis@qt.io>2022-07-26 16:33:22 +0200
commit83090e16cbb41a59094aa596892a841537de7d15 (patch)
treef77447fe469d60f5b353e811f23bdb53748125d4 /tests/auto/other
parentd8f9ac784e919064ab2620a3bd77794d6e730c9a (diff)
Fix flakiness of test on OpenSUSE/KDE
The cause is that the first EXPOSE event comes with the window not having focus. See QTBUG-105177. Fixes: QTBUG-67254 Task-number: QTBUG-105177 Change-Id: I04789d0a173979d9a60893989f76566b617c6576 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/other')
-rw-r--r--tests/auto/other/gestures/BLACKLIST4
-rw-r--r--tests/auto/other/gestures/tst_gestures.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/tests/auto/other/gestures/BLACKLIST b/tests/auto/other/gestures/BLACKLIST
index 32d3f0ae15..ec8ebd82d2 100644
--- a/tests/auto/other/gestures/BLACKLIST
+++ b/tests/auto/other/gestures/BLACKLIST
@@ -45,10 +45,6 @@ ubuntu-18.04
ubuntu-20.04
[conflictingGesturesInGraphicsView]
ubuntu-20.04
-[customGesture]
-opensuse-leap
-# QTBUG-67254
-opensuse-42.3
[graphicsItemTreeGesture]
ubuntu-18.04
ubuntu-20.04
diff --git a/tests/auto/other/gestures/tst_gestures.cpp b/tests/auto/other/gestures/tst_gestures.cpp
index 81b186c0a1..88ae2661a5 100644
--- a/tests/auto/other/gestures/tst_gestures.cpp
+++ b/tests/auto/other/gestures/tst_gestures.cpp
@@ -337,7 +337,7 @@ void tst_Gestures::customGesture()
GestureWidget widget;
widget.grabGesture(CustomGesture::GestureType, Qt::DontStartGestureOnChildren);
widget.show();
- QVERIFY(QTest::qWaitForWindowExposed(&widget));
+ QVERIFY(QTest::qWaitForWindowActive(&widget));
CustomEvent event;
event.hotSpot = widget.mapToGlobal(QPoint(5,5));