]> Kevux Git Server - rit/commit
commit-graph tests: fix error-hiding graph_git_two_modes() helper
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 14 Oct 2021 23:37:14 +0000 (01:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Oct 2021 16:21:30 +0000 (09:21 -0700)
commit3247919a758710692e316a13c209e13933936d51
tree5848df0ec554474bb5f572ff5cc16b8dd89abe67
parentaf6d1d602a8f64164b266364339c4e936d5bbc33
commit-graph tests: fix error-hiding graph_git_two_modes() helper

The graph_git_two_modes() helper added in 177722b3442 (commit:
integrate commit graph with commit parsing, 2018-04-10) didn't
&&-chain its "git commit-graph" invocations, which as can be seen with
SANITIZE=leak will happily mark tests as passing if both of these
commands die, since test_cmp() will be comparing two empty files.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5318-commit-graph.sh