diff options
author | Rainer Keller <rainer.keller@theqtcompany.com> | 2015-01-19 11:27:33 +0100 |
---|---|---|
committer | Rainer Keller <rainer.keller@theqtcompany.com> | 2015-01-19 15:54:01 +0100 |
commit | c3d90662dfc65dd5f0dd8e5cd31d1bafb3328e7c (patch) | |
tree | f3b5611a93593f5b142341a0eaee042b83e8b9fe /tests/auto | |
parent | 0445e84888cd0d2f9a8c90f3a88317ab05c690d7 (diff) | |
download | qtscript-c3d90662dfc65dd5f0dd8e5cd31d1bafb3328e7c.tar.gz |
Autotest: Use QFINDTESTDATA to find test data
Change-Id: If33c0f93576b1a3b4ce395156a51df564156deb4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro | 2 | ||||
-rw-r--r-- | tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
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 |