From 3414828ccc91da0d94f3b160f29766b9273357ad Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Thu, 13 Sep 2012 15:06:19 -0300 Subject: Blackberry: fix tst_QFileInfo::isWritable() This test checks the access permissions for '/etc/passwd', however the filesystem on Blackberry is always read-only. cherry-picked from qt5 4a588c27e8073076cca19a8cc6eed5f1ce1d07e2 Change-Id: I6d14785dd94205761e3a73fc7aa420b805cd13a6 Reviewed-by: Thomas McGuire Reviewed-by: Giuseppe D'Angelo --- tests/auto/qfileinfo/tst_qfileinfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp index 0c9b86b..0b782eb 100644 --- a/tests/auto/qfileinfo/tst_qfileinfo.cpp +++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp @@ -1556,7 +1556,10 @@ void tst_QFileInfo::isWritable() QVERIFY(fi.exists()); QVERIFY(!fi.isWritable()); #endif -#if defined (Q_OS_UNIX) && !defined (Q_OS_SYMBIAN) +#if defined (Q_OS_BLACKBERRY) + // The Blackberry filesystem is read-only + QVERIFY(!QFileInfo("/etc/passwd").isWritable()); +#elif defined (Q_OS_UNIX) && !defined (Q_OS_SYMBIAN) if (::getuid() == 0) QVERIFY(QFileInfo("/etc/passwd").isWritable()); else -- cgit v0.12