diff options
Diffstat (limited to 'tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp')
-rw-r--r-- | tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp b/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp index 08a5e3ae3d..58198f85fa 100644 --- a/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp +++ b/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp @@ -83,7 +83,7 @@ private slots: void cleanup(); - void QTBUG15255_deadlock(); + void destroyAfterQCoreApplication(); private: QStringList do_force_engines; bool do_force_native; @@ -543,13 +543,15 @@ public: Q_GLOBAL_STATIC(SomeSingleton, someSingleton) -void tst_QFileSystemWatcher::QTBUG15255_deadlock() +// This is a regression test for QTBUG-15255, where a deadlock occurred if a +// QFileSystemWatcher was destroyed after the QCoreApplication instance had +// been destroyed. There are no explicit verification steps in this test -- +// it is sufficient that the test terminates. +void tst_QFileSystemWatcher::destroyAfterQCoreApplication() { someSingleton()->bla(); - //the test must still finish QTest::qWait(30); } - QTEST_MAIN(tst_QFileSystemWatcher) #include "tst_qfilesystemwatcher.moc" |