summaryrefslogtreecommitdiffstats
path: root/tests/auto/qchar
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-08 17:00:43 +0200
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-08 17:06:26 +0200
commitcf7ca87e057ef3810c5db36ff975a98f532a8dc0 (patch)
treeb7c0ba6d17ae827e60bc5a48ac66a5694ac67c81 /tests/auto/qchar
parentc2f2b6509fcd91617ae3eb860d6d3f947c5ea443 (diff)
Make test pass when executed from debug/release directory.
Diffstat (limited to 'tests/auto/qchar')
-rw-r--r--tests/auto/qchar/tst_qchar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qchar/tst_qchar.cpp b/tests/auto/qchar/tst_qchar.cpp
index 01ba53402f..512c180de8 100644
--- a/tests/auto/qchar/tst_qchar.cpp
+++ b/tests/auto/qchar/tst_qchar.cpp
@@ -500,6 +500,9 @@ void tst_QChar::normalization()
}
QFile f("NormalizationTest.txt");
+ // Windows - current directory is the debug/release subdirectory where the executable is located
+ if (!f.exists())
+ f.setFileName("../NormalizationTest.txt");;
if (!f.exists()) {
QFAIL("Couldn't find NormalizationTest.txt");
return;