diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-08-05 17:09:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-05 17:20:13 +0200 |
commit | 12571cc095ce1d789f27f94bfc530efb32d9d1b3 (patch) | |
tree | 59bb78d9cb654ff7348204e4a7671b0a1695a818 /tests | |
parent | 9370f50f2ce809647862f0b65ea0aa82e96556bb (diff) |
Fix tst_QFile::caseSensitivity on OS X
By not assuming that the file system is case insensitive. OSX supports
both.
Change-Id: I11a4ac4cdff97b97b183dd319757a42ae14bb52d
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/io/qfile/tst_qfile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 42dca7fc66..2b029203e9 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -3255,11 +3255,14 @@ void tst_QFile::objectConstructors() void tst_QFile::caseSensitivity() { -#if defined(Q_OS_WIN) || defined(Q_OS_MAC) +#if defined(Q_OS_WIN) const bool caseSensitive = false; +#elif defined(Q_OS_MAC) + const bool caseSensitive = pathconf(QDir::currentPath().toLatin1().constData(), _PC_CASE_SENSITIVE); #else const bool caseSensitive = true; #endif + QByteArray testData("a little test"); QString filename("File.txt"); { |