]> Kevux Git Server - rit/commit
diff-highlight: check diff-highlight exit status in tests
authorJeff King <peff@peff.net>
Mon, 23 Mar 2026 06:02:05 +0000 (02:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 14:42:26 +0000 (07:42 -0700)
commit05002f60565cdfe2b86108c7f7c027a41d534140
tree1b9631d4a6cc7b83923fcd4dcad626f5700bccbf
parent550097a645348426a3e5944d0457925381ff8e23
diff-highlight: check diff-highlight exit status in tests

When testing diff-highlight, we pipe the output through a sanitizing
function. This loses the exit status of diff-highlight itself, which
could mean we are missing cases where it crashes or exits unexpectedly.
Use an extra tempfile to avoid the pipe.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/t/t9400-diff-highlight.sh