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>
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