From: Patrick Steinhardt Date: Thu, 4 Jun 2026 10:07:35 +0000 (+0200) Subject: t7810: turn MB_REGEX check into a lazy prereq X-Git-Tag: v2.55.0-rc1~8^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1688db759de18a8403945090688b8cc25ba26dd;p=thirdparty%2Fgit.git t7810: turn MB_REGEX check into a lazy prereq 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 Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- 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 <