From b089f0e17dab094ce99dc8edd385cbef0bc212c4 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Tue, 22 Sep 2009 17:51:47 +0200 Subject: 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. --- 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 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 -- cgit v0.12