]> git.99rst.org Git - git.git/commit
test-lib: don't set GIT_EXIT_OK before calling test_atexit_handler
authorÆvar Arnfjörð Bjarmason <redacted>
Wed, 27 Jul 2022 23:13:30 +0000 (01:13 +0200)
committerJunio C Hamano <redacted>
Wed, 27 Jul 2022 23:35:39 +0000 (16:35 -0700)
commite0258f15cbe1412659a0a68ac17b42dd470a49fb
tree1d59aa877ecff4312a17961986aaea040277d040
parent6d00680de2c8a517f2b6b5853588786ed92fae93
test-lib: don't set GIT_EXIT_OK before calling test_atexit_handler

Change the control flow in test_done so that we'll set GIT_EXIT_OK=t
after we call test_atexit_handler(). This seems to have been a mistake
in 900721e15c4 (test-lib: introduce 'test_atexit', 2019-03-13). It
doesn't make sense to allow our "atexit" handling to call "exit"
without us emitting the errors we'll emit without GIT_EXIT_OK=t being
set.

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