Fix qmlplugindump test on mac.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 10 Nov 2011 05:56:29 +0000 (15:56 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 Nov 2011 05:44:22 +0000 (06:44 +0100)
Change-Id: I939e4cccc34dd8807e3dd4e4a2eb43d4653a14e2
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp

index 234d4bc..57e3abb 100644 (file)
@@ -66,10 +66,16 @@ tst_qmlplugindump::tst_qmlplugindump()
 
 void tst_qmlplugindump::initTestCase()
 {
-    qmlplugindumpPath = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/qmlplugindump");
-#ifdef Q_OS_WIN
-    qmlplugindumpPath += QLatin1String(".exe");
+    qmlplugindumpPath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
+
+#if defined(Q_OS_MAC)
+    qmlplugindumpPath += QLatin1String("/qmlplugindump.app/Contents/MacOS/qmlplugindump");
+#elif defined(Q_OS_WIN)
+    qmlplugindumpPath += QLatin1String("/qmlplugindump.exe");
+#else
+    qmlplugindumpPath += QLatin1String("/qmlplugindump");
 #endif
+
     if (!QFileInfo(qmlplugindumpPath).exists()) {
         QString message = QString::fromLatin1("qmlplugindump executable not found (looked for %0)")
                 .arg(qmlplugindumpPath);