chiark / gitweb /
tests suite; t-expect-fail: Honour expect_fail_lcmessages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Sep 2018 10:19:02 +0000 (11:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Sep 2018 11:48:14 +0000 (12:48 +0100)
No users yet so NFC.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index a4f307f..ba87fbc 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -92,7 +92,7 @@ t-expect-fail () {
        local mpat="$1"; shift
 
        set +o pipefail
        local mpat="$1"; shift
 
        set +o pipefail
-       LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output
+       LC_MESSAGES=${expect_fail_lcmessages-C} "$@" 2>&1 | tee $tmp/t.output
        local ps="${PIPESTATUS[*]}"
        set -o pipefail
 
        local ps="${PIPESTATUS[*]}"
        set -o pipefail