From e7710b211cb08b3d975f7d8add6bedaf25d60c4d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 11 Dec 2017 15:50:10 +0100 Subject: 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 --- tests/auto/qml/qmlplugindump/qmlplugindump.pro | 1 + tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/auto/qml') 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(); -- cgit v1.2.3