chiark / gitweb /
tests suite; t-expect-fail: Honour expect_fail_lcmessages
[dgit.git] / tests / lib
index a4f307f8a70c3770f09536a37225b543c1e07bbe..ba87fbc78c344dcbad63f9f6fa257f64da36d97f 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -92,7 +92,7 @@ t-expect-fail () {
        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