Skip to content

Commit 0b3481c

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b7bcdbd commit 0b3481c

6 files changed

+10
-0
lines changed

t/t3000-ls-files-others.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ filesystem.
1515
path3/file3 - a file in a directory
1616
path4 - an empty directory
1717
'
18+
19+
TEST_PASSES_SANITIZE_LEAK=true
1820
. ./test-lib.sh
1921

2022
test_expect_success 'setup ' '

t/t3002-ls-files-dashpath.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ filesystem.
1212
-foo - a file with a funny name.
1313
-- - another file with a funny name.
1414
'
15+
16+
TEST_PASSES_SANITIZE_LEAK=true
1517
. ./test-lib.sh
1618

1719
test_expect_success \

t/t3003-ls-files-exclude.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
22

33
test_description='ls-files --exclude does not affect index files'
4+
5+
TEST_PASSES_SANITIZE_LEAK=true
46
. ./test-lib.sh
57

68
test_expect_success 'create repo with file' '

t/t3004-ls-files-basic.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This test runs git ls-files with various unusual or malformed
66
command-line arguments.
77
'
88

9+
TEST_PASSES_SANITIZE_LEAK=true
910
. ./test-lib.sh
1011

1112
test_expect_success 'ls-files in empty repository' '

t/t3006-ls-files-long.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
22

33
test_description='overly long paths'
4+
5+
TEST_PASSES_SANITIZE_LEAK=true
46
. ./test-lib.sh
57

68
test_expect_success setup '

t/t3008-ls-files-lazy-init-name-hash.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
test_description='Test the lazy init name hash with various folder structures'
44

5+
TEST_PASSES_SANITIZE_LEAK=true
56
. ./test-lib.sh
67

78
if test 1 -eq $(test-tool online-cpus)

0 commit comments

Comments
 (0)