summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/script/sunspider/tst_sunspider.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-04 14:17:44 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-04 14:17:44 (GMT)
commitfc013b7be66a6d4fc13af8bd38b7e679ed3998af (patch)
treecc068fa05bbc357bce89f8c6dfe37d6308704a1e /tests/benchmarks/script/sunspider/tst_sunspider.cpp
parentbe41c140594ccea16ce17ccca7251d614cc75e1e (diff)
parent4d53a691aaac9789ddd4f9d4e968d28ace2181ca (diff)
downloadQt-fc013b7be66a6d4fc13af8bd38b7e679ed3998af.zip
Qt-fc013b7be66a6d4fc13af8bd38b7e679ed3998af.tar.gz
Qt-fc013b7be66a6d4fc13af8bd38b7e679ed3998af.tar.bz2
Merge branch 'master' into lighthouse-master
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!");
}