Cleanup testcase for platforms without QProcess support.

Change-Id: Ib56c90262605ad975772f6b26c6232020e308ca6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
Maurice Kalinowski 2016-02-09 14:45:15 +01:00
parent 42f788ffe2
commit 2ddd11dde2

View File

@ -212,6 +212,7 @@ tst_QLocale::tst_QLocale()
void tst_QLocale::initTestCase()
{
#ifndef QT_NO_PROCESS
const QString syslocaleapp_dir = QFINDTESTDATA("syslocaleapp");
QVERIFY2(!syslocaleapp_dir.isEmpty(),
qPrintable(QStringLiteral("Cannot find 'syslocaleapp' starting from ")
@ -224,6 +225,7 @@ void tst_QLocale::initTestCase()
QVERIFY2(fi.exists() && fi.isExecutable(),
qPrintable(QDir::toNativeSeparators(m_sysapp)
+ QStringLiteral(" does not exist or is not executable.")));
#endif // QT_NO_PROCESS
#ifdef Q_OS_BLACKBERRY
if ((m_languageFd = open(ppsLanguageLocalePath, O_RDONLY)) == -1)