[PATCH v3 5/8] tests: annotate t001*.sh with TEST_PASSES_SANITIZE_LEAK=true
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 31, 2021, 13:35 UTC
- Message-ID
- <patch-v3-5.8-ed5f5705755-20210831T132607Z-avarab@gmail.com>
- In-Reply-To
- <cover-v3-0.8-00000000000-20210831T132607Z-avarab@gmail.com>
Annotate the t001*.sh tests that pass under SANITIZE=leak, these tests now pass under GIT_TEST_PASSING_SANITIZE_LEAK=true. We skip t0012-help.sh, t0014-alias.sh, t0015-hash.sh and t0019-json-writer.sh due to outstanding memory leaks.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/t0010-racy-git.sh | 1 + t/t0011-hashmap.sh | 1 + t/t0013-sha1dc.sh | 1 + t/t0016-oidmap.sh | 1 + t/t0017-env-helper.sh | 1 + t/t0018-advice.sh | 1 + 6 files changed, 6 insertions(+)
diff --git a/t/t0010-racy-git.sh b/t/t0010-racy-git.sh index 5657c5a87b6..9a627077be4 100755 --- a/t/t0010-racy-git.sh +++ b/t/t0010-racy-git.sh @@ -2,6 +2,7 @@ test_description='racy GIT' +. ./test-pragma-SANITIZE=leak-ok.sh . ./test-lib.sh # This test can give false success if your machine is sufficiently diff --git a/t/t0011-hashmap.sh b/t/t0011-hashmap.sh index 5343ffd3f92..02b07ffa75c 100755 --- a/t/t0011-hashmap.sh +++ b/t/t0011-hashmap.sh @@ -1,6 +1,7 @@ #!/bin/sh test_description='test hashmap and string hash functions' +. ./test-pragma-SANITIZE=leak-ok.sh . ./test-lib.sh test_hashmap() { diff --git a/t/t0013-sha1dc.sh b/t/t0013-sha1dc.sh index 419f31a8f7d..812b5fcaff3 100755 --- a/t/t0013-sha1dc.sh +++ b/t/t0013-sha1dc.sh @@ -1,6 +1,7 @@ #!/bin/sh test_description='test sha1 collision detection' +. ./test-pragma-SANITIZE=leak-ok.sh . ./test-lib.sh TEST_DATA="$TEST_DIRECTORY/t0013" diff --git a/t/t0016-oidmap.sh b/t/t0016-oidmap.sh index 31f8276ba82..a9e135d859b 100755 --- a/t/t0016-oidmap.sh +++ b/t/t0016-oidmap.sh @@ -1,6 +1,7 @@ #!/bin/sh test_description='test oidmap' +. ./test-pragma-SANITIZE=leak-ok.sh . ./test-lib.sh # This purposefully is very similar to t0011-hashmap.sh diff --git a/t/t0017-env-helper.sh b/t/t0017-env-helper.sh index 4a159f99e44..14bb6797b30 100755 --- a/t/t0017-env-helper.sh +++ b/t/t0017-env-helper.sh @@ -2,6 +2,7 @@ test_description='test env--helper' +. ./test-pragma-SANITIZE=leak-ok.sh . ./test-lib.sh diff --git a/t/t0018-advice.sh b/t/t0018-advice.sh index 39e5e4b34f8..326752a9711 100755 --- a/t/t0018-advice.sh +++ b/t/t0018-advice.sh @@ -2,6 +2,7 @@ test_description='Test advise_if_enabled functionality' +. ./test-pragma-SANITIZE=leak-ok.sh . ./test-lib.sh test_expect_success 'advice should be printed when config variable is unset' '
-- 2.33.0.805.g739b16c2189