From 1ca23216898ac24e6e72e2740cfd4d748a6b05be Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 6 Jul 2024 20:37:31 +0800 Subject: [PATCH] build: Set LC_ALL=C for test suite Otherwise the error messages may be translated, causing a match failure. --- Makefile.am | 4 +++- p11-kit/meson.build | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a6491af2..e591fb4a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -83,7 +83,9 @@ AM_TESTS_ENVIRONMENT = \ abs_top_srcdir="$(abs_top_srcdir)"; \ export abs_top_srcdir; \ P11_MODULE_PATH="$(abs_top_builddir)/.libs"; \ - export P11_MODULE_PATH; + export P11_MODULE_PATH; \ + LC_ALL=C; \ + export LC_ALL; AM_TESTS_FD_REDIRECT = 9>&2; LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ diff --git a/p11-kit/meson.build b/p11-kit/meson.build index ad627749..ae0a127e 100644 --- a/p11-kit/meson.build +++ b/p11-kit/meson.build @@ -399,6 +399,7 @@ if get_option('test') p11_kit_tests_env.set('abs_top_builddir', top_build_dir) p11_kit_tests_env.set('abs_top_srcdir', top_source_dir) p11_kit_tests_env.set('P11_MODULE_PATH', meson.current_build_dir()) + p11_kit_tests_env.set('LC_ALL', 'C') if host_system != 'windows' test('test-objects.sh',