From 5bc98da76b7d6ab4d175ac75e539d7f887c2c080 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 7 Oct 2009 18:15:15 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp index 34fa5e9..4ed12f7 100644 --- a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp +++ b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp @@ -667,6 +667,7 @@ void tst_qmlecmascript::dynamicDestruction() QMetaObject::invokeMethod(object, "killMe"); QVERIFY(object); QTest::qWait(0); + QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion); QVERIFY(!object); } -- cgit v0.12