1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

tests: run tests in C locale

Fixes #3038
This commit is contained in:
Emanuele Torre
2024-02-10 18:23:50 +01:00
committed by GitHub
parent 623d7a8bd6
commit fc9ecd71b3

View File

@ -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 \