t: mark a bunch of tests as leak-free

There are a bunch of tests which do not have any leaks: - t0411: Introduced via 5c5a4a1c05 (t0411: add tests for cloning from partial repo, 2024-01-28), passes since its inception. - t0610: Introduced via 57db2a094d (refs: introduce reftable backend, 2024-02-07), passes since its inception. - t2405: Passes since 6741e917de (repository: avoid leaking `fsmonitor` data, 2024-04-12). - t7423: Introduced via b20c10fd9b (t7423: add tests for symlinked submodule directories, 2024-01-28), passes since e8d0608944 (submodule: require the submodule path to contain directories only, 2024-03-26). The fix is not obviously related, but probably works because we now die early in many code paths. - t9xxx: All of these are exercising CVS-related tooling and pass since at least Git v2.40. It's likely that these pass for a long time already, but nobody ever noticed because Git developers do not tend to have CVS on their machines. Mark all of these tests as passing. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed May 27, 2024 at 13:45 UTC fba95dad6ad83fd27eaf57cf526110faa8a20833
11 files changed +13
t/t0411-clone-from-partial.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='check that local clone does not fetch from promisor remotes'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'create evil repo' '
t/t0610-reftable-basics.sh
+1
@@ -10,6 +10,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 GIT_TEST_DEFAULT_REF_FORMAT=reftable
11 export GIT_TEST_DEFAULT_REF_FORMAT
12
13 +TEST_PASSES_SANITIZE_LEAK=true
14 . ./test-lib.sh
15
16 INVALID_OID=$(test_oid 001)
t/t2405-worktree-submodule.sh
+1
@@ -5,6 +5,7 @@ test_description='Combination of submodules and multiple worktrees'
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 base_path=$(pwd -P)
t/t7423-submodule-symlinks.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='check that submodule operations do not follow symlinks'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'prepare' '
t/t9200-git-cvsexportcommit.sh
+1
@@ -4,6 +4,7 @@
4 #
5 test_description='Test export of commits to CVS'
6
7 +TEST_PASSES_SANITIZE_LEAK=true
8 . ./test-lib.sh
9
10 if ! test_have_prereq PERL; then
t/t9401-git-cvsserver-crlf.sh
+1
@@ -12,6 +12,7 @@ repository using cvs CLI client via git-cvsserver server'
12 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
13 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14
15 +TEST_PASSES_SANITIZE_LEAK=true
16 . ./test-lib.sh
17
18 marked_as () {
t/t9600-cvsimport.sh
+1
@@ -4,6 +4,7 @@ test_description='git cvsimport basic tests'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
7 +TEST_PASSES_SANITIZE_LEAK=true
8 . ./lib-cvs.sh
9
10 if ! test_have_prereq NOT_ROOT; then
t/t9601-cvsimport-vendor-branch.sh
+1
@@ -35,6 +35,7 @@ test_description='git cvsimport handling of vendor branches'
35 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
36 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
37
38 +TEST_PASSES_SANITIZE_LEAK=true
39 . ./lib-cvs.sh
40
41 setup_cvs_test_repository t9601
t/t9602-cvsimport-branches-tags.sh
+1
@@ -7,6 +7,7 @@ test_description='git cvsimport handling of branches and tags'
7 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
8 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9
10 +TEST_PASSES_SANITIZE_LEAK=true
11 . ./lib-cvs.sh
12
13 setup_cvs_test_repository t9602
t/t9603-cvsimport-patchsets.sh
+2
@@ -12,6 +12,8 @@
12 # bug.
13
14 test_description='git cvsimport testing for correct patchset estimation'
15 +
16 +TEST_PASSES_SANITIZE_LEAK=true
17 . ./lib-cvs.sh
18
19 setup_cvs_test_repository t9603
t/t9604-cvsimport-timestamps.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='git cvsimport timestamps'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-cvs.sh
7
8 test_lazy_prereq POSIX_TIMEZONE '