chiark / gitweb /
test suite: t-expect-fail: Set LANGUAGE too
[dgit.git] / tests / lib
index ba87fbc..a050522 100644 (file)
--- 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