Running tests with non-English locale set in Linux terminal makes system tests (system_tests/run_command
) fail. Setting the locale in failing test explicitly to ‘C’ fixes the failure.
How to reproduce test failure:
Setting LC_ALL=cs_CZ.UTF-8 (export LC_ALL=cs_CZ.UTF-8
) in terminal and then running make check
should be enough.
Fix:
My terminal is by default set to non-English locale and the test failed because it checks for English error message, but the terminal produces error message in the language set by locale. Then I manually set export LC_ALL=C
in my terminal and all tests passed. So I explicitly set env variable ‘LC_ALL’ to ‘C’ in the code of failing test.