From 1e8530a75b48e9444c3f629eea2e1414e001b76c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 29 Sep 2018 11:43:24 +0100 Subject: [PATCH] test suite: t-expect-fail: Set LANGUAGE too The user may have this in their environment, in which case we must squash it too. Signed-off-by: Ian Jackson --- tests/lib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib b/tests/lib index ba87fbc7..a0505228 100644 --- a/tests/lib +++ b/tests/lib @@ -92,7 +92,9 @@ t-expect-fail () { local mpat="$1"; shift set +o pipefail - LC_MESSAGES=${expect_fail_lcmessages-C} "$@" 2>&1 | tee $tmp/t.output + LC_MESSAGES=${expect_fail_lcmessages-C} \ + LANGUAGE=${expect_fail_lcmessages-C} \ + "$@" 2>&1 | tee $tmp/t.output local ps="${PIPESTATUS[*]}" set -o pipefail -- 2.30.2