summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2012-09-13 11:29:47 -0300
committerQt by Nokia <qt-info@nokia.com>2012-09-13 16:52:51 +0200
commit4a588c27e8073076cca19a8cc6eed5f1ce1d07e2 (patch)
tree9476373522766bf37114476a55a0bab39624605b /tests
parentae3d0027df060b1f807586af7f5397c7062703f7 (diff)
Blackberry: fix tst_QFileInfo::isWritable()
This test checks the access permissions for '/etc/passwd', however the filesystem on Blackberry is always read-only Change-Id: I9299531397d4467287541b04184540ad6e2eae72 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
index 477fd44297..df8b1dda1c 100644
--- a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
@@ -1484,7 +1484,10 @@ void tst_QFileInfo::isWritable()
QVERIFY(fi.exists());
QVERIFY(!fi.isWritable());
#endif
-#if defined (Q_OS_UNIX)
+#if defined (Q_OS_BLACKBERRY)
+ // The Blackberry filesystem is read-only
+ QVERIFY(!QFileInfo("/etc/passwd").isWritable());
+#elif defined (Q_OS_UNIX)
if (::getuid() == 0)
QVERIFY(QFileInfo("/etc/passwd").isWritable());
else