summaryrefslogtreecommitdiffstats
path: root/tests/auto/qthreadstorage/tst_qthreadstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qthreadstorage/tst_qthreadstorage.cpp')
-rw-r--r--tests/auto/qthreadstorage/tst_qthreadstorage.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qthreadstorage/tst_qthreadstorage.cpp b/tests/auto/qthreadstorage/tst_qthreadstorage.cpp
index 097d729..ed86165 100644
--- a/tests/auto/qthreadstorage/tst_qthreadstorage.cpp
+++ b/tests/auto/qthreadstorage/tst_qthreadstorage.cpp
@@ -297,7 +297,15 @@ void tst_QThreadStorage::ensureCleanupOrder()
void tst_QThreadStorage::QTBUG13877_crashOnExit()
{
QProcess process;
+#ifdef Q_OS_WIN
+# ifdef QT_NO_DEBUG
+ process.start("release/crashOnExit");
+# else
+ process.start("debug/crashOnExit");
+# endif
+#else
process.start("./crashOnExit");
+#endif
QVERIFY(process.waitForFinished());
QVERIFY(process.exitStatus() != QProcess::CrashExit);
}