diff options
-rw-r--r-- | tests/auto/macnativeevents/macnativeevents.pro | 2 | ||||
-rw-r--r-- | tests/auto/macnativeevents/tst_macnativeevents.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/macnativeevents/macnativeevents.pro b/tests/auto/macnativeevents/macnativeevents.pro index 39a3523..af34942 100644 --- a/tests/auto/macnativeevents/macnativeevents.pro +++ b/tests/auto/macnativeevents/macnativeevents.pro @@ -14,5 +14,3 @@ SOURCES += expectedeventlist.cpp nativeeventlist.cpp SOURCES += tst_macnativeevents.cpp requires(mac) - -CONFIG+=insignificant_test # QTQAINFRA-428 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() |