From eae8c143428128a4bea4c06cff93b38189da267d Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Thu, 7 Oct 2010 08:49:30 +0200 Subject: 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 --- tests/auto/qthreadstorage/tst_qthreadstorage.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/auto/qthreadstorage') 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); } -- cgit v1.2.3