diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2011-02-15 16:26:48 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2011-02-16 11:44:23 (GMT) |
commit | 3f3a0f31b74774051021d969e008d7bd1536b010 (patch) | |
tree | 347f687e669eefde738e10b8f41b6428e186d54e /tests/auto/qfileopenevent | |
parent | b5e5f72faea7ae278572660f8fb6968d635e548f (diff) | |
download | Qt-3f3a0f31b74774051021d969e008d7bd1536b010.zip Qt-3f3a0f31b74774051021d969e008d7bd1536b010.tar.gz Qt-3f3a0f31b74774051021d969e008d7bd1536b010.tar.bz2 |
Workaround for QTBUG-17468
On Mac, processEvents doesn't always process posted events.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'tests/auto/qfileopenevent')
-rw-r--r-- | tests/auto/qfileopenevent/test/tst_qfileopenevent.cpp | 3 |
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); |