summaryrefslogtreecommitdiffstats
path: root/tests/auto/qthreadstorage
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-10-07 08:49:30 +0200
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-10-07 08:49:30 +0200
commiteae8c143428128a4bea4c06cff93b38189da267d (patch)
treefb66e5548b28d990b22d7cd6b69e3c75d6a3907c /tests/auto/qthreadstorage
parent83b4cad278e2c3b0ca16affc76a82ddce9d6149a (diff)
Fix failure on Windows after commit ccd3f66
By default the builds are placed in either a release\ or debug\ directory, so we need to start the correct one on Windows. Reviewed-by: trustme
Diffstat (limited to 'tests/auto/qthreadstorage')
-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 097d729b29..ed86165731 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);
}