aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-06-08 14:27:52 -0700
committerJunio C Hamano <gitster@pobox.com>2022-06-08 14:27:52 -0700
commitd777ef9befe7cdf595981686954427d8cd6e4c4c (patch)
treec0fcf483717fdd1ac6c90bc42a35b49d5357494c /t
parentac8f6b6608315ea11d64ba331ea39cf985f577f5 (diff)
parent067109a5e7db3fdffc25240bfc3b350962cd6bd6 (diff)
downloadgit-d777ef9befe7cdf595981686954427d8cd6e4c4c.tar.xz
Merge branch 'pw/test-malloc-with-sanitize-address' into maint
Avoid problems from interaction between malloc_check and address sanitizer. source: <pull.1210.git.1649507317350.gitgitgadget@gmail.com> * pw/test-malloc-with-sanitize-address: tests: make SANITIZE=address imply TEST_NO_MALLOC_CHECK
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 7f3d323e93..8ba5ca1534 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -535,9 +535,10 @@ case $GIT_TEST_FSYNC in
;;
esac
-# Add libc MALLOC and MALLOC_PERTURB test
-# only if we are not executing the test with valgrind
+# Add libc MALLOC and MALLOC_PERTURB test only if we are not executing
+# the test with valgrind and have not compiled with SANITIZE=address.
if test -n "$valgrind" ||
+ test -n "$SANITIZE_ADDRESS" ||
test -n "$TEST_NO_MALLOC_CHECK"
then
setup_malloc_check () {