aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlplugindump
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlplugindump')
-rw-r--r--tests/auto/qml/qmlplugindump/qmlplugindump.pro3
-rw-r--r--tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/qml/qmlplugindump/qmlplugindump.pro b/tests/auto/qml/qmlplugindump/qmlplugindump.pro
index 76f3fe2299..ab915c819c 100644
--- a/tests/auto/qml/qmlplugindump/qmlplugindump.pro
+++ b/tests/auto/qml/qmlplugindump/qmlplugindump.pro
@@ -1,8 +1,7 @@
-CONFIG += testcase
-TARGET = tst_qmlplugindump
QT += testlib gui-private qml
macx:CONFIG -= app_bundle
include(../../shared/util.pri)
+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 6915e789c6..ffddc52f9c 100644
--- a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
+++ b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
@@ -105,8 +105,8 @@ void tst_qmlplugindump::singleton()
{
QProcess dumper;
QStringList args;
- args << QLatin1String("dumper.CompositeSingleton") << QLatin1String("1.0")
- << testFile(".");
+ args << QLatin1String("tests.dumper.CompositeSingleton") << QLatin1String("1.0")
+ << QLatin1String(QT_QMLTEST_DIR);
dumper.start(qmlplugindumpPath, args);
QVERIFY2(dumper.waitForStarted(), qPrintable(dumper.errorString()));
QVERIFY2(dumper.waitForFinished(), qPrintable(dumper.errorString()));