diff options
Diffstat (limited to 'tests/auto')
-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() |