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>
maint
Ævar Arnfjörð Bjarmason 2021-10-12 15:56:38 +02:00 committed by Junio C Hamano
parent c150064dbe
commit fdc8f79f1f
6 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh
test_description='test sha1 collision detection'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
TEST_DATA="$TEST_DIRECTORY/t0013"

View File

@ -2,6 +2,7 @@
test_description='simple command server'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test-tool simple-ipc SUPPORTS_SIMPLE_IPC || {

View File

@ -5,6 +5,7 @@
test_description='Test run command'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
cat >hello-script <<-EOF

View File

@ -2,6 +2,7 @@
test_description='Test strcmp_offset functionality'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
while read s1 s2 expect

View File

@ -2,6 +2,7 @@
test_description='Test the dir-iterator functionality'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'setup' '

View File

@ -2,6 +2,7 @@
test_description='Test parse_pathspec_file()'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'one item from stdin' '