summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/script/sunspider/tst_sunspider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/script/sunspider/tst_sunspider.cpp')
-rw-r--r--tests/benchmarks/script/sunspider/tst_sunspider.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/benchmarks/script/sunspider/tst_sunspider.cpp b/tests/benchmarks/script/sunspider/tst_sunspider.cpp
index 7a8617a..0df19b6 100644
--- a/tests/benchmarks/script/sunspider/tst_sunspider.cpp
+++ b/tests/benchmarks/script/sunspider/tst_sunspider.cpp
@@ -46,10 +46,6 @@
#include <QtScript/qscriptengine.h>
#include <QtScript/qscriptvalue.h>
-#if defined(Q_OS_SYMBIAN)
-# define SRCDIR ""
-#endif
-
//TESTED_FILES=
static QString readFile(const QString &filename)
@@ -84,9 +80,8 @@ private:
tst_SunSpider::tst_SunSpider()
{
- testsDir = QDir(SRCDIR);
- bool testsFound = testsDir.cd("tests");
- if (!testsFound)
+ testsDir = QDir(":/tests");
+ if (!testsDir.exists())
qWarning("*** no tests/ dir!");
}