diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-09-22 16:21:48 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-09-22 16:38:15 (GMT) |
commit | a2a4e1c9fa5b3ffb151029735eb89e3708572928 (patch) | |
tree | 02cc0bbfb6ed8b082813daa7387a2f763e2d6dd9 /tests/auto/qcoreapplication | |
parent | 285addaaa632ebfd3bc6bdccbe8b114c0bb83882 (diff) | |
download | Qt-a2a4e1c9fa5b3ffb151029735eb89e3708572928.zip Qt-a2a4e1c9fa5b3ffb151029735eb89e3708572928.tar.gz Qt-a2a4e1c9fa5b3ffb151029735eb89e3708572928.tar.bz2 |
Fix the test tst_QCoreApplication::sendEventsOnProcessEvents()
The test is failing when Qt is compiled with Qt 3 support. Qt 3
support send events for the insertion of the new child.
Diffstat (limited to 'tests/auto/qcoreapplication')
-rw-r--r-- | tests/auto/qcoreapplication/tst_qcoreapplication.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qcoreapplication/tst_qcoreapplication.cpp b/tests/auto/qcoreapplication/tst_qcoreapplication.cpp index 4b38044..c5f06e2 100644 --- a/tests/auto/qcoreapplication/tst_qcoreapplication.cpp +++ b/tests/auto/qcoreapplication/tst_qcoreapplication.cpp @@ -84,9 +84,7 @@ void tst_QCoreApplication::sendEventsOnProcessEvents() QCoreApplication::postEvent(&app, new QEvent(QEvent::Type(QEvent::User + 1))); QCoreApplication::processEvents(); - QList<int> expected; - expected << QEvent::User + 1; - QCOMPARE(expected, spy.recordedEvents); + QVERIFY(spy.recordedEvents.contains(QEvent::User + 1)); } void tst_QCoreApplication::getSetCheck() |