summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-09-29 11:43:24 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-09-29 12:48:24 +0100
commit1e8530a75b48e9444c3f629eea2e1414e001b76c (patch)
tree68dd37c2032c4ca423a9e612a8f6647e41b8ac1f /tests/lib
parentf1d68d5945334f10b96a94f129556656b1543dd8 (diff)
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index ba87fbc..a050522 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