]> git.ipfire.org Git - thirdparty/git.git/commit
rev-list simplify tests: don't ignore "git" exit code
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 7 Mar 2022 12:49:06 +0000 (13:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Mar 2022 21:27:41 +0000 (13:27 -0800)
commita6ecc256c34c42a8b9f1790d9bfb5ea8f6309022
tree35043b86dc6dad37f7835202b7aeb61a0b861385
parentc419562860e3baf1cd3ae1ed9cb7cce6ab06cbd5
rev-list simplify tests: don't ignore "git" exit code

Change a fragile test pattern introduced in 65347030590 (Topo-sort
before --simplify-merges, 2008-08-03) to check the exit code of both
"git name-rev" and "git log".

This test as a whole would fail under SANITIZE=leak, but we'd pass
several "failing" tests due to hiding these exit codes before we'd
spot git dying with abort(). Now we'll instead spot all of the
failures.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6012-rev-list-simplify.sh