From 12571cc095ce1d789f27f94bfc530efb32d9d1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 5 Aug 2013 17:09:10 +0200 Subject: 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 --- tests/auto/corelib/io/qfile/tst_qfile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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"); { -- cgit v1.2.3