summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-03-31 14:35:14 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-03-31 14:40:41 (GMT)
commit8c186194030df820ac67a5793f2dbf5df268a25a (patch)
tree2e93c8b0c700fb0ea0b618d69c6d5faebd158daa
parent56949fc36c30a84e716b66ac74f3a0a8de74cc8e (diff)
downloadQt-8c186194030df820ac67a5793f2dbf5df268a25a.zip
Qt-8c186194030df820ac67a5793f2dbf5df268a25a.tar.gz
Qt-8c186194030df820ac67a5793f2dbf5df268a25a.tar.bz2
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
-rw-r--r--tests/auto/qdir/tst_qdir.cpp7
1 files changed, 7 insertions, 0 deletions
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);