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:
parent
9370f50f2c
commit
12571cc095
@ -3255,11 +3255,14 @@ void tst_QFile::objectConstructors()
|
|||||||
|
|
||||||
void tst_QFile::caseSensitivity()
|
void tst_QFile::caseSensitivity()
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
#if defined(Q_OS_WIN)
|
||||||
const bool caseSensitive = false;
|
const bool caseSensitive = false;
|
||||||
|
#elif defined(Q_OS_MAC)
|
||||||
|
const bool caseSensitive = pathconf(QDir::currentPath().toLatin1().constData(), _PC_CASE_SENSITIVE);
|
||||||
#else
|
#else
|
||||||
const bool caseSensitive = true;
|
const bool caseSensitive = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QByteArray testData("a little test");
|
QByteArray testData("a little test");
|
||||||
QString filename("File.txt");
|
QString filename("File.txt");
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user