]> git.ipfire.org Git - thirdparty/git.git/commit
t9822: use prereq to check for ISO-8859-1 support
authorPatrick Steinhardt <ps@pks.im>
Mon, 2 Jun 2025 06:44:43 +0000 (08:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Jun 2025 14:51:42 +0000 (07:51 -0700)
commit844537091d3ab00aaec73bebd6b4c70adfd998fb
treee5d1b17b4bba464c3f97dc303015f329cbf3bbbc
parentddfcb9d466a4f4eab6c5bd578c9b13263d4ba610
t9822: use prereq to check for ISO-8859-1 support

Tests in t9822 depend on filesystem support for ISO-8859-1 encoding. We
thus have a block of code that acts as a prerequisite -- if we fail to
write a file with an ISO-8859-1-encoded file name to disk then we skip
all tests.

When the prerequisite fails though we end up printing an error message
to stderr, which breaks the TAP format. Fix this by converting the code
to a proper prerequisite, which handles output redirection for us.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9822-git-p4-path-encoding.sh