From ed00c72ce3d14bae96a56ee9c00022f8f962a081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Brooke?= Date: Sat, 25 Jan 2025 13:47:32 +0100 Subject: [PATCH] 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 Reviewed-by: Thiago Macieira --- tests/auto/tools/moc/tst_moc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 9dae77ea47f..6ba72d2fbe0 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -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" << "-";