From d07270161ef3d1c4b3ed29110a16eaff54333fd5 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 7 Oct 2009 22:07:06 +1000 Subject: Fix test case qWait() enters a nested event loop, so delete laters weren't being processed. --- tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp index 4ed12f7..51f1ce7 100644 --- a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp +++ b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp @@ -660,8 +660,10 @@ void tst_qmlecmascript::dynamicDestruction() QMetaObject::invokeMethod(object, "killOther"); QVERIFY(createdQmlObject); QTest::qWait(0); + QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion); QVERIFY(createdQmlObject); QTest::qWait(100); + QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion); QVERIFY(!createdQmlObject); QMetaObject::invokeMethod(object, "killMe"); -- cgit v0.12