aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2011-11-10 15:56:29 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-11 06:44:22 +0100
commit851412e58ee70d76ecf405d113a1d29d82157e53 (patch)
tree38fb5c0ab3a655b6bffe54b58a7eaca00fe8a972 /tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp
parent90fdbb0433abbe2712174ac2fdb7026ec182abbb (diff)
Fix qmlplugindump test on mac.
Change-Id: I939e4cccc34dd8807e3dd4e4a2eb43d4653a14e2 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp')
-rw-r--r--tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp b/tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp
index 234d4bc04c..57e3abb72c 100644
--- a/tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp
+++ b/tests/auto/declarative/qmlplugindump/tst_qmlplugindump.cpp
@@ -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);