summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp b/tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp
index 4f10d31..1177131 100644
--- a/tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp
+++ b/tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp
@@ -284,6 +284,9 @@ void tst_qfileopenevent::sendAndReceive()
QCoreApplication::instance()->postEvent(this, event.take());
QCoreApplication::instance()->processEvents();
+ // QTBUG-17468: On Mac, processEvents doesn't always process posted events
+ QCoreApplication::instance()->sendPostedEvents();
+
// check the content
QFile check("testSendAndReceive");
QCOMPARE(check.open(QFile::ReadOnly), true);