diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-04 14:17:44 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-04 14:17:44 (GMT) |
commit | fc013b7be66a6d4fc13af8bd38b7e679ed3998af (patch) | |
tree | cc068fa05bbc357bce89f8c6dfe37d6308704a1e /tests/benchmarks/script/sunspider/tst_sunspider.cpp | |
parent | be41c140594ccea16ce17ccca7251d614cc75e1e (diff) | |
parent | 4d53a691aaac9789ddd4f9d4e968d28ace2181ca (diff) | |
download | Qt-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.cpp | 9 |
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!"); } |