diff options
author | Thomas Zander <t.zander@nokia.com> | 2010-10-11 14:35:58 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-10-12 12:59:01 (GMT) |
commit | 75016a4a3bb2ae536a3a813f0ef410b1a0c83742 (patch) | |
tree | 2ad95a2a8febedcd040d0399ce8aa59accac3b06 /tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp | |
parent | 4f9b25ffa8025702c82a32538b82d15acf03303b (diff) | |
download | Qt-75016a4a3bb2ae536a3a813f0ef410b1a0c83742.zip Qt-75016a4a3bb2ae536a3a813f0ef410b1a0c83742.tar.gz Qt-75016a4a3bb2ae536a3a813f0ef410b1a0c83742.tar.bz2 |
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/tst_qfilesystemmodel.cpp')
-rw-r--r-- | tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp index a391eb9..6b63691 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); |