aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-12-11 15:50:10 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-12-11 16:09:49 +0000
commite7710b211cb08b3d975f7d8add6bedaf25d60c4d (patch)
tree69e1c32ad3b141eb957385a87e5e00b254a8cbf5 /tests
parentdd2657e30a42c269f47195d61a9fe8a5fff02912 (diff)
Pass the source directory in the plugindump test
On shadow builds this fails when just passing ".", because "." is the build directory. Change-Id: Iee84b73f2c4e5c8663d84d53b31f658501244dc9 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmlplugindump/qmlplugindump.pro1
-rw-r--r--tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlplugindump/qmlplugindump.pro b/tests/auto/qml/qmlplugindump/qmlplugindump.pro
index c713edc541..9327beffa6 100644
--- a/tests/auto/qml/qmlplugindump/qmlplugindump.pro
+++ b/tests/auto/qml/qmlplugindump/qmlplugindump.pro
@@ -3,4 +3,5 @@ TARGET = tst_qmlplugindump
QT += testlib gui-private
macx:CONFIG -= app_bundle
+DEFINES += QT_QMLTEST_DIR=\\\"$${_PRO_FILE_PWD_}\\\"
SOURCES += tst_qmlplugindump.cpp
diff --git a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
index 838966e2a0..235cf6fac9 100644
--- a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
+++ b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
@@ -103,7 +103,7 @@ void tst_qmlplugindump::singleton()
QProcess dumper;
QStringList args;
args << QLatin1String("tests.dumper.CompositeSingleton") << QLatin1String("1.0")
- << QLatin1String(".");
+ << QLatin1String(QT_QMLTEST_DIR);
dumper.start(qmlplugindumpPath, args);
dumper.waitForFinished();