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:
Aurélien Brooke 2025-01-25 13:47:32 +01:00
parent a4d3a82244
commit ed00c72ce3

View File

@ -2094,6 +2094,7 @@ void tst_Moc::notifyError()
QByteArray mocOut = proc.readAllStandardOutput();
QVERIFY(!mocOut.isEmpty());
proc.setEnvironment({"LC_ALL=C.UTF-8"});
QStringList args;
args << "-c" << "-x" << "c++" << "-I" << "."
<< "-I" << qtIncludePath << "-o" << "/dev/null" << "-fPIC" << "-std=c++1z" << "-";