On Mac, the application's dir is in the bundle, so we need to "escape"
the bundle when looking for the an executable relative to the
application's dir path.
Change-Id: I5c01f7d816ec8cc30f5277202f4eefb0c49a2bc3
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
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);
}