]> git.99rst.org Git - git.git/commit
run-command tests: use "return", not "exit"
authorÆvar Arnfjörð Bjarmason <redacted>
Wed, 12 Oct 2022 21:02:22 +0000 (23:02 +0200)
committerJunio C Hamano <redacted>
Wed, 12 Oct 2022 21:12:40 +0000 (14:12 -0700)
commit910e2b372f215263a79ae1d849274d2a212c16e2
treef3536c6c60b5b9e560aea9fa58c4fc1fafaf7dd5
parent7dd5762d9f3980a85f96dd9f143184dc2fa07275
run-command tests: use "return", not "exit"

Change the "run-command" test helper to "return" instead of calling
"exit", see 338abb0f045 (builtins + test helpers: use return instead
of exit() in cmd_*, 2021-06-08)

Because we'd previously gotten past the SANITIZE=leak check by using
exit() here we need to move to "goto cleanup" pattern.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-run-command.c
git clone https://git.99rst.org/PROJECT