summaryrefslogtreecommitdiffstats
path: root/tests/auto/qchar
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-08 15:00:43 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-08 15:06:26 (GMT)
commitcf7ca87e057ef3810c5db36ff975a98f532a8dc0 (patch)
treeb7c0ba6d17ae827e60bc5a48ac66a5694ac67c81 /tests/auto/qchar
parentc2f2b6509fcd91617ae3eb860d6d3f947c5ea443 (diff)
downloadQt-cf7ca87e057ef3810c5db36ff975a98f532a8dc0.zip
Qt-cf7ca87e057ef3810c5db36ff975a98f532a8dc0.tar.gz
Qt-cf7ca87e057ef3810c5db36ff975a98f532a8dc0.tar.bz2
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 01ba534..512c180 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;