summaryrefslogtreecommitdiffstats
path: root/tests/auto/macnativeevents/tst_macnativeevents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/macnativeevents/tst_macnativeevents.cpp')
-rw-r--r--tests/auto/macnativeevents/tst_macnativeevents.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/macnativeevents/tst_macnativeevents.cpp b/tests/auto/macnativeevents/tst_macnativeevents.cpp
index a5e7d6e..d0cb4fd 100644
--- a/tests/auto/macnativeevents/tst_macnativeevents.cpp
+++ b/tests/auto/macnativeevents/tst_macnativeevents.cpp
@@ -270,7 +270,11 @@ void tst_MacNativeEvents::testDragWindow()
expected.append(new QMouseEvent(QEvent::NonClientAreaMouseButtonRelease, w.mapFromGlobal(titlebar), moveTo, Qt::LeftButton, Qt::NoButton, Qt::NoModifier));
native.play();
- QVERIFY2(expected.waitForAllEvents(), "the test did not receive all expected events!");
+ bool waited = expected.waitForAllEvents();
+ if (!waited) {
+ QEXPECT_FAIL("", "QTBUG-26804", Continue);
+ }
+ QVERIFY2(waited, "the test did not receive all expected events!");
}
void tst_MacNativeEvents::testMouseEnter()