leak tests: run various "test-tool" tests in t00*.sh SANITIZE=leak

Mark various existing tests in t00*.sh that invoke a "test-tool" with 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 fdc8f79f1f16bcbd640532dbe09ac64b93feeca0
6 files changed +7
t/t0013-sha1dc.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='test sha1 collision detection'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7 TEST_DATA="$TEST_DIRECTORY/t0013"
8
t/t0052-simple-ipc.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='simple command server'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test-tool simple-ipc SUPPORTS_SIMPLE_IPC || {
t/t0061-run-command.sh
+1
@@ -5,6 +5,7 @@
5
6 test_description='Test run command'
7
8 +TEST_PASSES_SANITIZE_LEAK=true
9 . ./test-lib.sh
10
11 cat >hello-script <<-EOF
t/t0065-strcmp-offset.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test strcmp_offset functionality'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 while read s1 s2 expect
t/t0066-dir-iterator.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test the dir-iterator functionality'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'setup' '
t/t0067-parse_pathspec_file.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test parse_pathspec_file()'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'one item from stdin' '