summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp b/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
index 11f2ef5f3f..f5f92d151c 100644
--- a/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
+++ b/tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
@@ -290,7 +290,11 @@ void tst_QThreadStorage::crashOnExit()
QProcess process;
// crashOnExit is always expected to be in the same directory
// as this test binary
+#ifdef Q_OS_MAC
+ process.start(QCoreApplication::applicationDirPath() + "/../../../crashOnExit");
+#else
process.start(QCoreApplication::applicationDirPath() + "/crashOnExit");
+#endif
QVERIFY(process.waitForFinished());
QVERIFY(process.exitStatus() != QProcess::CrashExit);
}