summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-24 14:31:47 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-24 14:34:01 (GMT)
commit365cbdf74aa0f5933bf938922ebb48fa8e37d8ce (patch)
tree65cc0a46709a5f845614ac224bddc1b13add95ac /tests
parent4d99029334105f2df9f424fd0c4764cce3230ef0 (diff)
downloadQt-365cbdf74aa0f5933bf938922ebb48fa8e37d8ce.zip
Qt-365cbdf74aa0f5933bf938922ebb48fa8e37d8ce.tar.gz
Qt-365cbdf74aa0f5933bf938922ebb48fa8e37d8ce.tar.bz2
Make the internal testcase more robust on Windows FS as well
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfiledialog/tst_qfiledialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp
index 78a9d74..c31ecf2 100644
--- a/tests/auto/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp
@@ -2045,7 +2045,12 @@ void tst_QFiledialog::task257579_sideBarWithNonCleanUrls()
QCOMPARE(sidebar->urls().count(), 1);
QVERIFY(sidebar->urls().first().toLocalFile() != url);
QCOMPARE(sidebar->urls().first().toLocalFile(), QDir::cleanPath(url));
+
+#ifdef Q_OS_WIN
+ QCOMPARE(sidebar->model()->index(0,0).data().toString().toLower(), tempDir.dirName().toLower());
+#else
QCOMPARE(sidebar->model()->index(0,0).data().toString(), tempDir.dirName());
+#endif
//all tests are finished, we can remove the temporary dir
QVERIFY(tempDir.rmdir(dirname));