summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp')
-rw-r--r--tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp b/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
index ceb74b3849..e0fa30be19 100644
--- a/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
+++ b/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
@@ -291,15 +291,9 @@ void tst_QThreadStorage::ensureCleanupOrder()
void tst_QThreadStorage::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
+ // crashOnExit is always expected to be in the same directory
+ // as this test binary
+ process.start(QCoreApplication::applicationDirPath() + "/crashOnExit");
QVERIFY(process.waitForFinished());
QVERIFY(process.exitStatus() != QProcess::CrashExit);
}