While using "make test" I noticed that invert_exit_code used by GIT_TEST_SANITIZE_LEAK_LOG=true produces unexpected results. $ git checkout v2.40.1 $ make test SANITIZE=leak T=t3200-branch.sh # fails $ make test SANITIZE=leak GIT_TEST_SANITIZE_LEAK_LOG=true T=t3200-branch.sh # succeeds Rubén Justo (2): test-lib: prevent misuses of --invert-exit-code test-lib: fix GIT_TEST_SANITIZE_LEAK_LOG t/test-lib.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) -- 2.40.1