]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t: mark a bunch of tests as leak-free
authorPatrick Steinhardt <ps@pks.im>
Mon, 27 May 2024 11:45:52 +0000 (13:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 May 2024 18:19:57 +0000 (11:19 -0700)
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>
t/t0411-clone-from-partial.sh
t/t0610-reftable-basics.sh
t/t2405-worktree-submodule.sh
t/t7423-submodule-symlinks.sh
t/t9200-git-cvsexportcommit.sh
t/t9401-git-cvsserver-crlf.sh
t/t9600-cvsimport.sh
t/t9601-cvsimport-vendor-branch.sh
t/t9602-cvsimport-branches-tags.sh
t/t9603-cvsimport-patchsets.sh
t/t9604-cvsimport-timestamps.sh

index c98d5018695a137b57cc9634312f220cff897cce..932bf2067daaeb88de744762f2cdbc0b59c8b565 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='check that local clone does not fetch from promisor remotes'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'create evil repo' '
index cc5bbfd732e2acd715b0bd749f55b67b764f03d8..b06c46999d85559e4b26a777aa319937fc10458e 100755 (executable)
@@ -10,6 +10,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 GIT_TEST_DEFAULT_REF_FORMAT=reftable
 export GIT_TEST_DEFAULT_REF_FORMAT
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 INVALID_OID=$(test_oid 001)
index 11018f37c70c02e9052b36be9edb8b05211bcf8d..1d7f60563387f9c2f53dfc3a79ac0289afe57611 100755 (executable)
@@ -5,6 +5,7 @@ test_description='Combination of submodules and multiple worktrees'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 base_path=$(pwd -P)
index 3d3c7af3ce520acad252d08c6506798b0f486fc6..f45d80620185b2d791e095179f22b6a967ab097e 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='check that submodule operations do not follow symlinks'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'prepare' '
index a44eabf0d80fa8db991d77af4da49f58750cf43a..3d4842164c8915fa28514028b1f1fb3e4da78db4 100755 (executable)
@@ -4,6 +4,7 @@
 #
 test_description='Test export of commits to CVS'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 if ! test_have_prereq PERL; then
index a34805acdc25cca244b5d10e1bae68f5937a279a..a67e6abd49db3da5acd0ee9fb1b4333da063fe4b 100755 (executable)
@@ -12,6 +12,7 @@ repository using cvs CLI client via git-cvsserver server'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 marked_as () {
index 568084921896cfc59c04d68814467d6f7443a75e..41fcf3606b39b793cb38e41c9bdd90a4d9fe3e4b 100755 (executable)
@@ -4,6 +4,7 @@ test_description='git cvsimport basic tests'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-cvs.sh
 
 if ! test_have_prereq NOT_ROOT; then
index 116cddba3a5da871d078a50f3559d40fbb208102..e00766949573cf2f3e11b8b0e62378a14733aef2 100755 (executable)
@@ -35,6 +35,7 @@ test_description='git cvsimport handling of vendor branches'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-cvs.sh
 
 setup_cvs_test_repository t9601
index e5266c9a872f15a9649d4f0532d823b86e50aeb6..3768e3bd8cc8e3a5d1a9cb0e51416411ed4303c6 100755 (executable)
@@ -7,6 +7,7 @@ test_description='git cvsimport handling of branches and tags'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-cvs.sh
 
 setup_cvs_test_repository t9602
index 19f38f78f2b9350271c7bc6b16bd1f8a4f6eea5f..2a387fdbaaefe0cf8ac424cd7939514904239cb5 100755 (executable)
@@ -12,6 +12,8 @@
 # bug.
 
 test_description='git cvsimport testing for correct patchset estimation'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-cvs.sh
 
 setup_cvs_test_repository t9603
index 2d03259729b5f4269ec546a2663199708fffcbbf..9cf0685d56fe51311caabcabf9d26f09d631f5ce 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='git cvsimport timestamps'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-cvs.sh
 
 test_lazy_prereq POSIX_TIMEZONE '