summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-08-14 09:05:42 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-08-14 09:06:31 +0200
commit5c23199d4e8ff21661dfa5aacc13149178e78cab (patch)
tree322aee61581d7c85f1ccb65e47d1e79eba1ba6c9 /tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
parent252bad7c589e03d3e12df02354b00a84d8e3159a (diff)
parentc8d9b17367cfdcb034d11f8a168ca4ae3993e7c3 (diff)
Merge remote-tracking branch 'origin/stable' into dev
Conflicts: configure mkspecs/macx-xcode/Info.plist.app mkspecs/macx-xcode/Info.plist.lib qmake/doc/qmake.qdocconf src/corelib/global/qglobal.h tests/auto/other/exceptionsafety/exceptionsafety.pro tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp Change-Id: I3c769a4a82dc2e99a12c69123fbf17613fd2ac2a
Diffstat (limited to 'tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp')
-rw-r--r--tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
index bcc971bf4b..af2578ac37 100644
--- a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
@@ -916,16 +916,6 @@ void tst_QFileInfo::compare_data()
QTest::addColumn<QString>("file2");
QTest::addColumn<bool>("same");
-#if defined(Q_OS_MAC)
- // Since 10.6 we use realpath() in qfsfileengine, and it properly handles
- // file system case sensitivity. However here in the autotest we don't
- // check if the file system is case sensitive, so to make it pass in the
- // default OS X installation we assume we are running on a case insensitive
- // file system if on 10.6 and on a case sensitive file system if on 10.5
- bool caseSensitiveOnMac = true;
- if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_6)
- caseSensitiveOnMac = false;
-#endif
QString caseChangedSource = m_sourceFile;
caseChangedSource.replace("info", "Info");
@@ -947,7 +937,7 @@ void tst_QFileInfo::compare_data()
#if defined(Q_OS_WIN)
<< true;
#elif defined(Q_OS_MAC)
- << !caseSensitiveOnMac;
+ << !pathconf(QDir::currentPath().toLatin1().constData(), _PC_CASE_SENSITIVE);
#else
<< false;
#endif
@@ -955,6 +945,11 @@ void tst_QFileInfo::compare_data()
void tst_QFileInfo::compare()
{
+#if defined(Q_OS_MAC)
+ if (qstrcmp(QTest::currentDataTag(), "casesense1") == 0)
+ QSKIP("Qt thinks all UNIX filesystems are case sensitive, see QTBUG-28246");
+#endif
+
QFETCH(QString, file1);
QFETCH(QString, file2);
QFETCH(bool, same);