leak tests: mark some misc tests as passing with SANITIZE=leak
Mark some tests that match "*{mktree,commit,diff,grep,rm,merge,hunk}*" 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). These were picked because we still have a lot of failures in adjacent areas, and we didn't have much if any coverage of e.g. grep and diff before this change, we could still whitelist a lot more tests, but let's stop for now. 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
7ff24785cb7e1655f1295dce3e0269348bbbbe02
10 files changed
+12
t/t1010-mktree.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='git mktree'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./test-lib.sh
7
8
test_expect_success setup '
t/t1100-commit-tree-options.sh
+1
@@ -12,6 +12,7 @@ Also make sure that command line parser understands the normal
12
"flags first and then non flag arguments" command line.
13
'
14
15
+TEST_PASSES_SANITIZE_LEAK=true
16
. ./test-lib.sh
17
18
cat >expected <<EOF
t/t3601-rm-pathspec-file.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='rm --pathspec-from-file'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./test-lib.sh
7
8
test_tick
t/t4002-diff-basic.sh
+2
@@ -6,6 +6,8 @@
6
test_description='Test diff raw-output.
7
8
'
9
+
10
+TEST_PASSES_SANITIZE_LEAK=true
11
. ./test-lib.sh
12
13
. "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh
t/t4016-diff-quote.sh
+1
@@ -6,6 +6,7 @@
6
test_description='Quoting paths in diff output.
7
'
8
9
+TEST_PASSES_SANITIZE_LEAK=true
10
. ./test-lib.sh
11
12
P0='pathname'
t/t4019-diff-wserror.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='diff whitespace error detection'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./test-lib.sh
7
8
test_expect_success setup '
t/t4025-hunk-header.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='diff hunk header truncation'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./test-lib.sh
7
8
N='日本語'
t/t4300-merge-tree.sh
+2
@@ -4,6 +4,8 @@
4
#
5
6
test_description='git merge-tree'
7
+
8
+TEST_PASSES_SANITIZE_LEAK=true
9
. ./test-lib.sh
10
11
test_expect_success setup '
t/t7813-grep-icase-iso.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='grep icase on non-English locales'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./lib-gettext.sh
7
8
test_expect_success GETTEXT_ISO_LOCALE 'setup' '
t/t7816-grep-binary-pattern.sh
+1
@@ -2,6 +2,7 @@
2
3
test_description='git grep with a binary pattern files'
4
5
+TEST_PASSES_SANITIZE_LEAK=true
6
. ./lib-gettext.sh
7
8
nul_match_internal () {