Skip to content

Commit fba95da

Browse files
pks-tgitster
authored andcommitted
t: mark a bunch of tests as leak-free
There are a bunch of tests which do not have any leaks: - t0411: Introduced via 5c5a4a1 (t0411: add tests for cloning from partial repo, 2024-01-28), passes since its inception. - t0610: Introduced via 57db2a0 (refs: introduce reftable backend, 2024-02-07), passes since its inception. - t2405: Passes since 6741e91 (repository: avoid leaking `fsmonitor` data, 2024-04-12). - t7423: Introduced via b20c10f (t7423: add tests for symlinked submodule directories, 2024-01-28), passes since e8d0608 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9fd3693 commit fba95da

11 files changed

+13
-0
lines changed

t/t0411-clone-from-partial.sh

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

33
test_description='check that local clone does not fetch from promisor remotes'
44

5+
TEST_PASSES_SANITIZE_LEAK=true
56
. ./test-lib.sh
67

78
test_expect_success 'create evil repo' '

t/t0610-reftable-basics.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1010
GIT_TEST_DEFAULT_REF_FORMAT=reftable
1111
export GIT_TEST_DEFAULT_REF_FORMAT
1212

13+
TEST_PASSES_SANITIZE_LEAK=true
1314
. ./test-lib.sh
1415

1516
INVALID_OID=$(test_oid 001)

t/t2405-worktree-submodule.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test_description='Combination of submodules and multiple worktrees'
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
base_path=$(pwd -P)

t/t7423-submodule-symlinks.sh

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

33
test_description='check that submodule operations do not follow symlinks'
44

5+
TEST_PASSES_SANITIZE_LEAK=true
56
. ./test-lib.sh
67

78
test_expect_success 'prepare' '

t/t9200-git-cvsexportcommit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#
55
test_description='Test export of commits to CVS'
66

7+
TEST_PASSES_SANITIZE_LEAK=true
78
. ./test-lib.sh
89

910
if ! test_have_prereq PERL; then

t/t9401-git-cvsserver-crlf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository using cvs CLI client via git-cvsserver server'
1212
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
1313
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1414

15+
TEST_PASSES_SANITIZE_LEAK=true
1516
. ./test-lib.sh
1617

1718
marked_as () {

t/t9600-cvsimport.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ test_description='git cvsimport basic tests'
44
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
55
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
66

7+
TEST_PASSES_SANITIZE_LEAK=true
78
. ./lib-cvs.sh
89

910
if ! test_have_prereq NOT_ROOT; then

t/t9601-cvsimport-vendor-branch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ test_description='git cvsimport handling of vendor branches'
3535
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
3636
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
3737

38+
TEST_PASSES_SANITIZE_LEAK=true
3839
. ./lib-cvs.sh
3940

4041
setup_cvs_test_repository t9601

t/t9602-cvsimport-branches-tags.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ test_description='git cvsimport handling of branches and tags'
77
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
88
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
99

10+
TEST_PASSES_SANITIZE_LEAK=true
1011
. ./lib-cvs.sh
1112

1213
setup_cvs_test_repository t9602

t/t9603-cvsimport-patchsets.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# bug.
1313

1414
test_description='git cvsimport testing for correct patchset estimation'
15+
16+
TEST_PASSES_SANITIZE_LEAK=true
1517
. ./lib-cvs.sh
1618

1719
setup_cvs_test_repository t9603

0 commit comments

Comments
 (0)