From c3d90662dfc65dd5f0dd8e5cd31d1bafb3328e7c Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Mon, 19 Jan 2015 11:27:33 +0100 Subject: Autotest: Use QFINDTESTDATA to find test data Change-Id: If33c0f93576b1a3b4ce395156a51df564156deb4 Reviewed-by: Simon Hausmann --- tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro | 2 -- tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro b/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro index 105fc97..91e1b64 100644 --- a/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro +++ b/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro @@ -5,8 +5,6 @@ SOURCES += tst_qscriptjstestsuite.cpp RESOURCES += qscriptjstestsuite.qrc include(../qscriptv8testsuite/abstracttestsuite.pri) -DEFINES += SRCDIR=\\\"$$PWD\\\" - wince* { testFiles.files = tests testFiles.path = . diff --git a/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp b/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp index c3e2d13..f84870a 100644 --- a/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp +++ b/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp @@ -320,7 +320,7 @@ void tst_QScriptJSTestSuite::runTestFunction(int testIndex) tst_QScriptJSTestSuite::tst_QScriptJSTestSuite() : AbstractTestSuite("tst_QScriptJsTestSuite", - QString::fromLatin1("%0/tests").arg(SRCDIR), + QFINDTESTDATA("tests"), ":/") { // don't execute any tests on slow machines -- cgit v1.2.1