leak tests: mark some add tests as passing with SANITIZE=leak

Mark some tests that match "*add*" 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). 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 31, 2021 at 00:24 UTC aecb85bdd12319d0c149a3d43bd35bca4256f26d
7 files changed +8
t/t2200-add-update.sh
+1
@@ -14,6 +14,7 @@ only the updates to dir/sub.
14 Also tested are "git add -u" without limiting, and "git add -u"
15 without contents changes, and other conditions'
16
17 +TEST_PASSES_SANITIZE_LEAK=true
18 . ./test-lib.sh
19
20 test_expect_success setup '
t/t2201-add-update-typechange.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='more git add -u'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t2202-add-addremove.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git add --all'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t2204-add-ignored.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='giving ignored paths to git add'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success setup '
t/t3702-add-edit.sh
+2
@@ -4,6 +4,8 @@
4 #
5
6 test_description='add -e basic tests'
7 +
8 +TEST_PASSES_SANITIZE_LEAK=true
9 . ./test-lib.sh
10
11
t/t3703-add-magic-pathspec.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='magic pathspec tests using git-add'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'setup' '
t/t3704-add-pathspec-file.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='add --pathspec-from-file'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_tick