Force C locale in tst_Moc::notifyError()
Otherwise, the test can fail because it detects "erreur" in French instead of the expected "error" in English. Change-Id: I7fce02cc9a6efd2c2f4bbbf72dc328b92a1eae74 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
a4d3a82244
commit
ed00c72ce3
@ -2094,6 +2094,7 @@ void tst_Moc::notifyError()
|
|||||||
QByteArray mocOut = proc.readAllStandardOutput();
|
QByteArray mocOut = proc.readAllStandardOutput();
|
||||||
QVERIFY(!mocOut.isEmpty());
|
QVERIFY(!mocOut.isEmpty());
|
||||||
|
|
||||||
|
proc.setEnvironment({"LC_ALL=C.UTF-8"});
|
||||||
QStringList args;
|
QStringList args;
|
||||||
args << "-c" << "-x" << "c++" << "-I" << "."
|
args << "-c" << "-x" << "c++" << "-I" << "."
|
||||||
<< "-I" << qtIncludePath << "-o" << "/dev/null" << "-fPIC" << "-std=c++1z" << "-";
|
<< "-I" << qtIncludePath << "-o" << "/dev/null" << "-fPIC" << "-std=c++1z" << "-";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user