summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfilesystemmodel
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-10-11 16:35:58 +0200
committerShane Kearns <shane.kearns@accenture.com>2010-10-12 13:59:01 +0100
commit75016a4a3bb2ae536a3a813f0ef410b1a0c83742 (patch)
tree2ad95a2a8febedcd040d0399ce8aa59accac3b06 /tests/auto/qfilesystemmodel
parent4f9b25ffa8025702c82a32538b82d15acf03303b (diff)
Add test to test QDir caching behavior.
Also fix the qfileenginemodel test to be less fragile Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'tests/auto/qfilesystemmodel')
-rw-r--r--tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
index a391eb9b5e..6b63691145 100644
--- a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
+++ b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
@@ -997,8 +997,8 @@ void tst_QFileSystemModel::dirsBeforeFiles()
}
dir.rmdir(dirPath);
}
- dir.mkpath(dirPath);
- QVERIFY(dir.exists());
+ QVERIFY(dir.mkpath(dirPath));
+ QVERIFY(QDir(dirPath).exists());
for (int i = 0; i < 3; ++i) {
QLatin1Char c('a' + i);