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>
This commit is contained in:
Ævar Arnfjörð Bjarmason 2021-10-12 15:56:42 +02:00 committed by Junio C Hamano
parent b7bcdbdb48
commit 0b3481c9ab
6 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,8 @@ filesystem.
path3/file3 - a file in a directory
path4 - an empty directory
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'setup ' '

View File

@ -12,6 +12,8 @@ filesystem.
-foo - a file with a funny name.
-- - another file with a funny name.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success \

View File

@ -1,6 +1,8 @@
#!/bin/sh
test_description='ls-files --exclude does not affect index files'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'create repo with file' '

View File

@ -6,6 +6,7 @@ This test runs git ls-files with various unusual or malformed
command-line arguments.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'ls-files in empty repository' '

View File

@ -1,6 +1,8 @@
#!/bin/sh
test_description='overly long paths'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View File

@ -2,6 +2,7 @@
test_description='Test the lazy init name hash with various folder structures'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
if test 1 -eq $(test-tool online-cpus)