aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/dialogs
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-03-21 08:27:43 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-22 15:26:58 +0100
commitd2395a2237a48565b5ea50856e0fdeade703f206 (patch)
tree1a566a432d82246808948d35dd6fec918fd9d8d9 /tests/auto/quick/dialogs
parent503eec194ea8bc70bfdbfd06bd0832a77cfcc137 (diff)
Skip flaky FileDialog modality test
It's been failing in CI, not just on MacOS Change-Id: Iba3ff400c0b8b6b0cc9a7c6bddd710d3f0e78964 Reviewed-by: David Faure (KDE) <faure@kde.org> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'tests/auto/quick/dialogs')
-rw-r--r--tests/auto/quick/dialogs/tst_dialogs.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/quick/dialogs/tst_dialogs.cpp b/tests/auto/quick/dialogs/tst_dialogs.cpp
index 9f0dc8ec18..1ab10cc80f 100644
--- a/tests/auto/quick/dialogs/tst_dialogs.cpp
+++ b/tests/auto/quick/dialogs/tst_dialogs.cpp
@@ -82,7 +82,6 @@ void tst_dialogs::fileDialogDefaultModality()
int visibilityChangedCount = spyVisibilityChanged.count();
// Can't hide by clicking the main window, because dialog is modal.
QTest::mouseClick(window, Qt::LeftButton, 0, QPoint(1000, 100));
-#ifdef Q_OS_MAC
/*
On the Mac, if you send an event directly to a window, the modal dialog
doesn't block the event, so the window will process it normally. This
@@ -91,9 +90,11 @@ void tst_dialogs::fileDialogDefaultModality()
and Qt will not even see the event. But simulating real events in the
test framework is generally unstable. So there isn't a good way to test
modality on the mac.
+ This test sometimes fails on other platforms too. Maybe it's not reliable
+ to try to click the main window in a location which is outside the
+ dialog, without checking or guaranteeing it somehow.
*/
- QSKIP("Modality test doesn't work on Mac OS");
-#endif
+ QSKIP("Modality test is flaky in general and doesn't work at all on MacOS");
// So we expect no change in visibility.
QCOMPARE(spyVisibilityChanged.count(), visibilityChangedCount);