summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
index ea9304d..2cc2558 100644
--- a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
+++ b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
@@ -806,7 +806,10 @@ void tst_QFileSystemModel::sort()
QDir dir(QDir::tempPath());
dir.mkdir("sortTemp");
dir.cd("sortTemp");
- QDirIterator it(dir);
+ QTRY_VERIFY(dir.exists());
+
+ //To be sure we clean the dir if it was there before
+ QDirIterator it(dir.absolutePath(), QDir::NoDotAndDotDot);
while(it.hasNext())
{
it.next();