From: Wolfgang Stöggl Date: Mon, 18 Nov 2019 19:11:47 +0000 (+0100) Subject: Use LC_NUMERIC=C for tests X-Git-Tag: v1.8.0~46 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=62fa3152f2b089c58753ab353c729f87286dcc85;p=thirdparty%2Frrdtool-1.x.git Use LC_NUMERIC=C for tests The following tests require dot as decimal separator: graph1, rpn1, create-with-source-4, dcounter1, vformatter1, pdp-calc1 Set LC_NUMERIC=C, which allows these tests to pass also under locales, where the decimal separator is not a dot by default: de_DE, es_ES, fr_FR, nl_NL etc. --- diff --git a/tests/functions b/tests/functions index e12193e9..b87538db 100644 --- a/tests/functions +++ b/tests/functions @@ -2,6 +2,10 @@ TZ=Europe/Zurich export TZ +# Use dot as decimal separator, which is required for some tests to pass +LC_NUMERIC=C +export LC_NUMERIC + BASEDIR="${BASEDIR:-$(dirname -- $0)}" BASEDIR="$(readlink -f -- $BASEDIR)"