Skip to content

Commit

Permalink
tests: run tests in C locale
Browse files Browse the repository at this point in the history
Fixes #3038
  • Loading branch information
emanuele6 authored Feb 10, 2024
1 parent 623d7a8 commit fc9ecd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/setup
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ JQTESTDIR=$(cd "$(dirname "$0")" && pwd)
JQBASEDIR=$JQTESTDIR/..
JQ=${JQ:-$JQBASEDIR/jq}

# Some tests have locale-dependent output; use C locale. Fixes #3038
LC_ALL=C
export LC_ALL

if [ -z "${NO_VALGRIND-}" ] && which valgrind > /dev/null; then
VALGRIND="valgrind --error-exitcode=1 --leak-check=full \
--suppressions=$JQTESTDIR/onig.supp \
Expand Down

0 comments on commit fc9ecd7

Please sign in to comment.