summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfileinfo
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-09-22 17:51:47 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-09-22 17:53:00 +0200
commitb089f0e17dab094ce99dc8edd385cbef0bc212c4 (patch)
tree0312a9ceb3cc1128813f3ccffecd38a7cfd75b62 /tests/auto/qfileinfo
parent6ad6dcd4c714dfff700029461638c235469f08d7 (diff)
Fix tst_QFileInfo::isHidden_data() with /bin on Mac OS X
On Mac OS X, the directory /bin is hidden because it does not have the "Visible" attribute in the filesystem.
Diffstat (limited to 'tests/auto/qfileinfo')
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index 71e38dfef2..7c320ff937 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -1049,7 +1049,10 @@ void tst_QFileInfo::isHidden_data()
QTest::newRow("~/.qt/..") << QDir::homePath() + QString("/.qt/..") << false;
#endif
-#if !defined(Q_OS_WIN) && !defined(Q_OS_SYMBIAN)
+#if defined(Q_OS_MAC)
+ // /bin has the hidden attribute on Mac OS X
+ QTest::newRow("/bin/") << QString::fromLatin1("/bin/") << true;
+#elif !defined(Q_OS_WIN) && !defined(Q_OS_SYMBIAN)
QTest::newRow("/bin/") << QString::fromLatin1("/bin/") << false;
#endif