Makefile: add SANITIZE=leak flag to GIT-BUILD-OPTIONS
commit2cdc292b3160e2bd80c3a9d24eff3afe29a2a46d
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 23 Sep 2021 09:20:45 +0000 (23 11:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Sep 2021 18:29:45 +0000 (23 11:29 -0700)
tree913b0f2701759d62b0aca5d4899db6c970c3976e
parente0a2f5cbc585657e757385ad918f167f519cfb96
Makefile: add SANITIZE=leak flag to GIT-BUILD-OPTIONS

When SANITIZE=leak is specified we'll now add a SANITIZE_LEAK flag to
GIT-BUILD-OPTIONS, this can then be picked up by the test-lib.sh,
which sets a SANITIZE_LEAK prerequisite.

We can then skip specific tests that are known to fail under
SANITIZE=leak, add one such annotation to t0004-unwritable.sh, which
now passes under SANITIZE=leak.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/t0004-unwritable.sh
t/test-lib.sh