[PATCH v3 5/8] t7810: turn MB_REGEX check into a lazy prereq
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jun 4, 2026, 10:07 UTC
- Message-ID
- <20260604-pks-t7527-fix-tap-output-v3-5-7d766ed481e4@pks.im>
- In-Reply-To
- <20260604-pks-t7527-fix-tap-output-v3-0-7d766ed481e4@pks.im>
In t7810 we verify whether the system has proper multibyte locale support by executing `test-tool regex` with a unicode character. When this check fails though we'll output an error that breaks the TAP format.
Fix this issue by turning the logic into a lazy prerequisite.
Reported-by: Jeff King <peff@peff.net> Signed-off-by: Patrick Steinhardt <ps@pks.im> --- t/t7810-grep.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index 1b195bee59..d61c4a4d73 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -18,8 +18,9 @@ test_invalid_grep_expression() { ' } -LC_ALL=en_US.UTF-8 test-tool regex '^.$' '¿' && - test_set_prereq MB_REGEX +test_lazy_prereq MB_REGEX ' + LC_ALL=en_US.UTF-8 test-tool regex "^.$" "¿" +' cat >hello.c <<EOF #include <assert.h>
-- 2.54.0.1064.gd145956f57.dirty