Skip to content

Commit

Permalink
build: Set LC_ALL=C for test suite
Browse files Browse the repository at this point in the history
Otherwise the error messages may be translated, causing a match failure.
  • Loading branch information
xry111 authored and ueno committed Jul 7, 2024
1 parent 0dd1133 commit 078acdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
1 change: 1 addition & 0 deletions p11-kit/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 078acdd

Please sign in to comment.