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>
This commit is contained in:
parent
ae3d0027df
commit
4a588c27e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user