From 8c186194030df820ac67a5793f2dbf5df268a25a Mon Sep 17 00:00:00 2001 From: Shane Kearns Date: Wed, 31 Mar 2010 15:35:14 +0100 Subject: Fix broken test case Symbian and WinCE don't have . and .. directory entries. Other test cases in this autotest make allowance for this, so I have done the same thing for the updateFileLists test case. Reviewed-by: mread --- tests/auto/qdir/tst_qdir.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp index ba18bbb..c8c835f 100644 --- a/tests/auto/qdir/tst_qdir.cpp +++ b/tests/auto/qdir/tst_qdir.cpp @@ -1470,9 +1470,16 @@ void tst_QDir::updateFileLists() QDir dir("update-file-lists"); +#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE) + //no . and .. on these OS. + QCOMPARE(dir.count(), uint(4)); + QCOMPARE(dir.entryList().size(), 4); + QCOMPARE(dir.entryInfoList().size(), 4); +#else QCOMPARE(dir.count(), uint(6)); QCOMPARE(dir.entryList().size(), 6); QCOMPARE(dir.entryInfoList().size(), 6); +#endif dir.setFilter(QDir::AllEntries | QDir::NoDotAndDotDot); -- cgit v0.12