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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Oct 12, 2021 at 15:56 UTC
98300c8157490e7e75868dc78807a5eaf851f3b5
5 files changed
+7
t/t1000-read-tree-m-3way.sh
+2
@@ -71,6 +71,8 @@ In addition:
71
DF: a special case, where A makes a directory and B makes a file.
72
73
'
74
+
75
+TEST_PASSES_SANITIZE_LEAK=true
76
. ./test-lib.sh
77
. "$TEST_DIRECTORY"/lib-read-tree.sh
78
. "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh
t/t1003-read-tree-prefix.sh
+1
@@ -6,6 +6,7 @@
6
test_description='git read-tree --prefix test.
7
'
8
9
+TEST_PASSES_SANITIZE_LEAK=true
10
. ./test-lib.sh
11
12
test_expect_success setup '
t/t1009-read-tree-new-index.sh
+1
@@ -5,6 +5,7 @@ test_description='test read-tree into a fresh index file'
5
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
8
+TEST_PASSES_SANITIZE_LEAK=true
9
. ./test-lib.sh
10
11
test_expect_success setup '
t/t1012-read-tree-df.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='read-tree D/F conflict corner cases'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./test-lib.sh
7
. "$TEST_DIRECTORY"/lib-read-tree.sh
8
t/t1014-read-tree-confusing.sh
+2
@@ -1,6 +1,8 @@
1
#!/bin/sh
2
3
test_description='check that read-tree rejects confusing paths'
4
+
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./test-lib.sh
7
8
test_expect_success 'create base tree' '