summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-07 08:15:15 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-07 08:15:15 (GMT)
commit5bc98da76b7d6ab4d175ac75e539d7f887c2c080 (patch)
tree88ebb56e507cee32631a21fdf1c63f75e51a53db /tests/auto
parent26fc680ab4344d1c14756459ab92c0413aebf99c (diff)
downloadQt-5bc98da76b7d6ab4d175ac75e539d7f887c2c080.zip
Qt-5bc98da76b7d6ab4d175ac75e539d7f887c2c080.tar.gz
Qt-5bc98da76b7d6ab4d175ac75e539d7f887c2c080.tar.bz2
Fix test case
qWait() enters a nested event loop, so delete laters weren't being processed.
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}