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 коммит произвёл Junio C Hamano
Родитель b7bcdbdb48
Коммит 0b3481c9ab
6 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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 ' '

Просмотреть файл

@ -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 \

Просмотреть файл

@ -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' '

Просмотреть файл

@ -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' '

Просмотреть файл

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

Просмотреть файл

@ -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)