From a2a4e1c9fa5b3ffb151029735eb89e3708572928 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Tue, 22 Sep 2009 18:21:48 +0200 Subject: 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. --- tests/auto/qcoreapplication/tst_qcoreapplication.cpp | 4 +--- 1 file changed, 1 insertion(+), 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 expected; - expected << QEvent::User + 1; - QCOMPARE(expected, spy.recordedEvents); + QVERIFY(spy.recordedEvents.contains(QEvent::User + 1)); } void tst_QCoreApplication::getSetCheck() -- cgit v0.12