summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfileinfo/tst_qfileinfo.cpp
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-09-22 15:51:47 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-09-22 15:53:00 (GMT)
commitb089f0e17dab094ce99dc8edd385cbef0bc212c4 (patch)
tree0312a9ceb3cc1128813f3ccffecd38a7cfd75b62 /tests/auto/qfileinfo/tst_qfileinfo.cpp
parent6ad6dcd4c714dfff700029461638c235469f08d7 (diff)
downloadQt-b089f0e17dab094ce99dc8edd385cbef0bc212c4.zip
Qt-b089f0e17dab094ce99dc8edd385cbef0bc212c4.tar.gz
Qt-b089f0e17dab094ce99dc8edd385cbef0bc212c4.tar.bz2
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/tst_qfileinfo.cpp')
-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 71e38df..7c320ff 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