leak tests: run various built-in tests in t00*.sh SANITIZE=leak

Mark various existing tests in t00*.sh that invoke git built-ins with TEST_PASSES_SANITIZE_LEAK=true as passing when git is compiled with SANITIZE=leak. They'll now be listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Oct 12, 2021 at 15:56 UTC c150064dbe286eb4f2f39f05c2865cd204eeca26
13 files changed +15
t/t0001-init.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git init'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 check_config () {
t/t0002-gitfile.sh
+1
@@ -7,6 +7,7 @@ Verify that plumbing commands work when .git is a file
7 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
8 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9
10 +TEST_PASSES_SANITIZE_LEAK=true
11 . ./test-lib.sh
12
13 objpath() {
t/t0003-attributes.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description=gitattributes
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 attr_check_basic () {
t/t0005-signals.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='signals work as we expect'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 cat >expect <<EOF
t/t0007-git-var.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='basic sanity checks for git var'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'get GIT_AUTHOR_IDENT' '
t/t0008-ignores.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description=check-ignore
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 init_vars () {
t/t0010-racy-git.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='racy GIT'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 # This test can give false success if your machine is sufficiently
t/t0022-crlf-rename.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='ignore CR in CRLF sequence while computing similiarity'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t0024-crlf-archive.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='respect crlf in git archive'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t0025-crlf-renormalize.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='CRLF renormalization'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t0026-eol-config.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='CRLF conversion'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 has_cr() {
t/t0029-core-unsetenvvars.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='test the Windows-only core.unsetenvvars setting'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 if ! test_have_prereq MINGW
t/t0055-beyond-symlinks.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='update-index and add refuse to add beyond symlinks'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success SYMLINKS setup '