leak tests: mark some ls-files tests as passing with SANITIZE=leak

Mark some tests that match "*ls-files*" 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). We still have others that match '*ls-files*" that fail under SANITIZE=leak. 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 0b3481c9ab24fdd3893cfea8d694250a08a99b34
6 files changed +10
t/t3000-ls-files-others.sh
+2
@@ -15,6 +15,8 @@ filesystem.
15 path3/file3 - a file in a directory
16 path4 - an empty directory
17 '
18 +
19 +TEST_PASSES_SANITIZE_LEAK=true
20 . ./test-lib.sh
21
22 test_expect_success 'setup ' '
t/t3002-ls-files-dashpath.sh
+2
@@ -12,6 +12,8 @@ filesystem.
12 -foo - a file with a funny name.
13 -- - another file with a funny name.
14 '
15 +
16 +TEST_PASSES_SANITIZE_LEAK=true
17 . ./test-lib.sh
18
19 test_expect_success \
t/t3003-ls-files-exclude.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='ls-files --exclude does not affect index files'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'create repo with file' '
t/t3004-ls-files-basic.sh
+1
@@ -6,6 +6,7 @@ This test runs git ls-files with various unusual or malformed
6 command-line arguments.
7 '
8
9 +TEST_PASSES_SANITIZE_LEAK=true
10 . ./test-lib.sh
11
12 test_expect_success 'ls-files in empty repository' '
t/t3006-ls-files-long.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='overly long paths'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t3008-ls-files-lazy-init-name-hash.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test the lazy init name hash with various folder structures'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 if test 1 -eq $(test-tool online-cpus)