Skip to content

Commit

Permalink
Fix flakiness of test on OpenSUSE/KDE
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Shawn Rutledge <[email protected]>
  • Loading branch information
jimis committed Jul 26, 2022
1 parent d8f9ac7 commit 83090e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions tests/auto/other/gestures/BLACKLIST
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/auto/other/gestures/tst_gestures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 83090e1

Please sign in to comment.