summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdir
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-09-22 13:16:02 (GMT)
committerThomas Zander <t.zander@nokia.com>2010-09-22 13:31:49 (GMT)
commit43866e6a2709c8098de0dfb0e51177042f046c52 (patch)
treebe953aa8676072d579138010b36afb4e110427b7 /tests/auto/qdir
parentdb9fb7195155f4ec929ae4ac73c5c5d4422e5aa6 (diff)
downloadQt-43866e6a2709c8098de0dfb0e51177042f046c52.zip
Qt-43866e6a2709c8098de0dfb0e51177042f046c52.tar.gz
Qt-43866e6a2709c8098de0dfb0e51177042f046c52.tar.bz2
Test 'QDir::cd' a bit better
Diffstat (limited to 'tests/auto/qdir')
-rw-r--r--tests/auto/qdir/tst_qdir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index 554b685..2bb0a3e 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -937,6 +937,7 @@ void tst_QDir::cd()
QFETCH(QString, newDir);
QDir d = startDir;
+ bool notUsed = d.exists(); // make sure we cache this before so we can see if 'cd' fails to flush this
QCOMPARE(d.cd(cdDir), successExpected);
if (successExpected)
QCOMPARE(d.absolutePath(), newDir);