tst_qsettings: Check case sensitivity of actual settings file
Instead of the current working directory, which doesn't necessarily match the location of the settings file. Change-Id: Idffe2e87190cc9b6027fbba3b84e9dbf72ccf2f6 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
50a095bede
commit
dafe20c948
@ -531,7 +531,7 @@ void tst_QSettings::ctor()
|
||||
// more details in QMacSettingsPrivate::QMacSettingsPrivate(), organization was comify()-ed
|
||||
caseSensitive = settings5.fileName().contains("SoftWare.ORG");;
|
||||
} else {
|
||||
caseSensitive = pathconf(QDir::currentPath().toLatin1().constData(), _PC_CASE_SENSITIVE);
|
||||
caseSensitive = pathconf(settings5.fileName().toLatin1().constData(), _PC_CASE_SENSITIVE);
|
||||
}
|
||||
#elif defined(Q_OS_WIN32) || defined(Q_OS_WINRT)
|
||||
caseSensitive = false;
|
||||
|
Loading…
Reference in New Issue
Block a user