summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMurray Read <ext-murray.2.read@nokia.com>2012-02-13 16:33:22 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-15 01:15:15 (GMT)
commitcdd09cc4ebab4e95f7c1286f09cef17a2c9cedf4 (patch)
treed60ec9057ef9a66c7ad6177a165c8ab6d0af5a9a /tests
parent07f9d4660e8380609fc9296b4211d4794b385326 (diff)
downloadQt-cdd09cc4ebab4e95f7c1286f09cef17a2c9cedf4.zip
Qt-cdd09cc4ebab4e95f7c1286f09cef17a2c9cedf4.tar.gz
Qt-cdd09cc4ebab4e95f7c1286f09cef17a2c9cedf4.tar.bz2
Checking for directory exists in failed QDir::mkpath on Symbian
QDir::mkpath should return true if the directory already exists. In the new native Symbian implementation, RFs returns KErrPermission denied when you try to access some data caged directories such as C:\private. This was being interpreted as failure, as the code expected KErrAlreadyExists for the case where the directory exists. In this circumstance we now check if the directory already exists. Task-number: ou1cimx1#974477 Change-Id: Ie476219bc963c23d3c7e1773ebded8ecf137fd3c Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qdir/tst_qdir.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index c507037..56862a8 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -299,6 +299,12 @@ void tst_QDir::mkdir_data()
QDir dir;
for (int i = 0; i < dirs.count(); ++i)
dir.rmpath(dirs.at(i));
+
+#ifdef Q_OS_SYMBIAN
+ // testing for directories that exist, but which we cannot necessarily create
+ QTest::newRow("symbian0") << QString::fromLatin1("C:/private") << true;
+ QTest::newRow("symbian1") << QString::fromLatin1("C:/private/E0340002") << true;
+#endif
}
void tst_QDir::mkdir()