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>
This commit is contained in:
Tor Arne Vestbø 2013-08-05 17:09:10 +02:00 committed by The Qt Project
parent 9370f50f2c
commit 12571cc095

View File

@ -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");
{