diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-11-08 15:04:41 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-11-08 15:04:41 +0900 |
| commit | c732f7430da8d4dedccd05540eae3dc7421dcdc6 (patch) | |
| tree | 2a965ad665788e71bf9143d0f844f419b3f32a7e /t | |
| parent | 98009afd24e2304bf923a64750340423473809ff (diff) | |
| parent | 9972cd6004ac46a919d2e8773be976ef1e2d6a65 (diff) | |
| download | git-c732f7430da8d4dedccd05540eae3dc7421dcdc6.tar.xz | |
Merge branch 'ps/leakfixes'
Leakfix.
* ps/leakfixes:
setup: fix leaking repository format
setup: refactor `upgrade_repository_format()` to have common exit
shallow: fix memory leak when registering shallow roots
test-bloom: stop setting up Git directory twice
Diffstat (limited to 't')
| -rw-r--r-- | t/helper/test-bloom.c | 1 | ||||
| -rwxr-xr-x | t/t5311-pack-bitmaps-shallow.sh | 2 | ||||
| -rwxr-xr-x | t/t5530-upload-pack-error.sh | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c index aabe31d724..1281e66876 100644 --- a/t/helper/test-bloom.c +++ b/t/helper/test-bloom.c @@ -40,7 +40,6 @@ static void get_bloom_filter_for_commit(const struct object_id *commit_oid) { struct commit *c; struct bloom_filter *filter; - setup_git_directory(); c = lookup_commit(the_repository, commit_oid); filter = get_or_compute_bloom_filter(the_repository, c, 1, &settings, diff --git a/t/t5311-pack-bitmaps-shallow.sh b/t/t5311-pack-bitmaps-shallow.sh index 9dae60f73e..4fe71fe8cd 100755 --- a/t/t5311-pack-bitmaps-shallow.sh +++ b/t/t5311-pack-bitmaps-shallow.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='check bitmap operation with shallow repositories' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # We want to create a situation where the shallow, grafted diff --git a/t/t5530-upload-pack-error.sh b/t/t5530-upload-pack-error.sh index 558eedf25a..7172780d55 100755 --- a/t/t5530-upload-pack-error.sh +++ b/t/t5530-upload-pack-error.sh @@ -2,6 +2,7 @@ test_description='errors in upload-pack' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh D=$(pwd) |
