summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/tools/qstring/main.cpp
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2012-03-12 14:24:02 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-19 01:18:20 +0100
commit0f929bfa9aa76d7db54a62c6a571e97224384ec1 (patch)
treea816ba9a293ba7b56c91be4c3b85ea4e56013f1d /tests/benchmarks/corelib/tools/qstring/main.cpp
parent36513264daaa0748d32326421732b9e5f212c2b5 (diff)
Fixed benchmarks to work from install directory
- Changed benchmarks to use TESTDATA and QFINDTESTDATA - Fixed up targets all use tst_bench_ syntax Change-Id: I5c2936702e248478f5df225ce38893158ee22d7f Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/benchmarks/corelib/tools/qstring/main.cpp')
-rw-r--r--tests/benchmarks/corelib/tools/qstring/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/benchmarks/corelib/tools/qstring/main.cpp b/tests/benchmarks/corelib/tools/qstring/main.cpp
index 9d5c43c290..9b10e97f2b 100644
--- a/tests/benchmarks/corelib/tools/qstring/main.cpp
+++ b/tests/benchmarks/corelib/tools/qstring/main.cpp
@@ -1408,7 +1408,9 @@ void tst_QString::ucstrncmp() const
void tst_QString::fromUtf8() const
{
- QFile file(SRCDIR "utf-8.txt");
+ QString testFile = QFINDTESTDATA("utf-8.txt");
+ QVERIFY2(!testFile.isEmpty(), "cannot find test file utf-8.txt!");
+ QFile file(testFile);
if (!file.open(QFile::ReadOnly)) {
qFatal("Cannot open input file");
return;