From 3f3a0f31b74774051021d969e008d7bd1536b010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Abecasis?= Date: Tue, 15 Feb 2011 17:26:48 +0100 Subject: Workaround for QTBUG-17468 On Mac, processEvents doesn't always process posted events. Reviewed-by: Olivier Goffart --- tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v0.12