Skip to content

Commit 98300c8

Browse files
avargitster
authored andcommitted
leak tests: mark some read-tree tests as passing with SANITIZE=leak
Mark some tests that match "*read-tree*" 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 around half the tests that match "*read-tree*" failing, but let's whitelist those that don't. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b3481c commit 98300c8

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

t/t1000-read-tree-m-3way.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ In addition:
7171
DF: a special case, where A makes a directory and B makes a file.
7272
7373
'
74+
75+
TEST_PASSES_SANITIZE_LEAK=true
7476
. ./test-lib.sh
7577
. "$TEST_DIRECTORY"/lib-read-tree.sh
7678
. "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh

t/t1003-read-tree-prefix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
test_description='git read-tree --prefix test.
77
'
88

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

1112
test_expect_success setup '

t/t1009-read-tree-new-index.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test_description='test read-tree into a fresh index file'
55
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
66
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
77

8+
TEST_PASSES_SANITIZE_LEAK=true
89
. ./test-lib.sh
910

1011
test_expect_success setup '

t/t1012-read-tree-df.sh

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

33
test_description='read-tree D/F conflict corner cases'
44

5+
TEST_PASSES_SANITIZE_LEAK=true
56
. ./test-lib.sh
67
. "$TEST_DIRECTORY"/lib-read-tree.sh
78

t/t1014-read-tree-confusing.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='check that read-tree rejects confusing paths'
4+
5+
TEST_PASSES_SANITIZE_LEAK=true
46
. ./test-lib.sh
57

68
test_expect_success 'create base tree' '

0 commit comments

Comments
 (0)