From 365cbdf74aa0f5933bf938922ebb48fa8e37d8ce Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 24 Jul 2009 16:31:47 +0200 Subject: Make the internal testcase more robust on Windows FS as well --- tests/auto/qfiledialog/tst_qfiledialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- cgit v0.12