t98xx: mark Perforce tests as memory-leak free

All the Perforce tests are free of memory leaks. This went unnoticed because most folks do not have p4 and p4d installed on their computers. Consequently, given that the prerequisites for running those tests aren't fulfilled, `TEST_PASSES_SANITIZE_LEAK=check` won't notice that those tests are indeed memory leak free. Mark those tests accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Jul 31, 2024 at 12:37 UTC 63ee9333837ec5c4cad79935a3061b02b51f32fd
35 files changed +35
t/t9800-git-p4-basic.sh
+1
@@ -5,6 +5,7 @@ test_description='git p4 tests'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
8 +TEST_PASSES_SANITIZE_LEAK=true
9 . ./lib-git-p4.sh
10
11 test_expect_success 'start p4d' '
t/t9801-git-p4-branch.sh
+1
@@ -5,6 +5,7 @@ test_description='git p4 tests for p4 branches'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
8 +TEST_PASSES_SANITIZE_LEAK=true
9 . ./lib-git-p4.sh
10
11 test_expect_success 'start p4d' '
t/t9802-git-p4-filetype.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 filetype tests'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9803-git-p4-shell-metachars.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 transparency to shell metachars in filenames'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9804-git-p4-label.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 label tests'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9805-git-p4-skip-submit-edit.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 skipSubmitEdit config variables'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9806-git-p4-options.sh
+1
@@ -5,6 +5,7 @@ test_description='git p4 options'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
8 +TEST_PASSES_SANITIZE_LEAK=true
9 . ./lib-git-p4.sh
10
11 test_expect_success 'start p4d' '
t/t9808-git-p4-chdir.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 relative chdir'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9809-git-p4-client-view.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 client view'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9810-git-p4-rcs.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 rcs keywords'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 CP1252="\223\224"
t/t9811-git-p4-label-import.sh
+1
@@ -5,6 +5,7 @@ test_description='git p4 label tests'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
8 +TEST_PASSES_SANITIZE_LEAK=true
9 . ./lib-git-p4.sh
10
11 test_expect_success 'start p4d' '
t/t9812-git-p4-wildcards.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 wildcards'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9813-git-p4-preserve-users.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 preserve users'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9814-git-p4-rename.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 rename'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9815-git-p4-submit-fail.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 submit failure handling'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9816-git-p4-locked.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 locked file behavior'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9817-git-p4-exclude.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 tests for excluded paths during clone and sync'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9818-git-p4-block.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 fetching changes in multiple blocks'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9819-git-p4-case-folding.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='interaction with P4 case-folding'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 if test_have_prereq CASE_INSENSITIVE_FS
t/t9820-git-p4-editor-handling.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 handling of EDITOR'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9821-git-p4-path-variations.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Clone repositories with path case variations'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d with case folding enabled' '
t/t9822-git-p4-path-encoding.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Clone repositories with non ASCII paths'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 UTF8_ESCAPED="a-\303\244_o-\303\266_u-\303\274.txt"
t/t9823-git-p4-mock-lfs.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Clone repositories and store files in Mock LFS'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_file_is_not_in_mock_lfs () {
t/t9825-git-p4-handle-utf16-without-bom.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 handling of UTF-16 files without BOM'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 UTF16="\227\000\227\000"
t/t9826-git-p4-keep-empty-commits.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Clone repositories and keep empty commits'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9827-git-p4-change-filetype.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 support for file type change'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9828-git-p4-map-user.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Clone repositories and map users'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9829-git-p4-jobs.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 retrieve job info'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9830-git-p4-symlink-dir.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 symlinked directories'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9831-git-p4-triggers.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 with server triggers'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9832-unshelve.sh
+1
@@ -6,6 +6,7 @@ last_shelved_change () {
6
7 test_description='git p4 unshelve'
8
9 +TEST_PASSES_SANITIZE_LEAK=true
10 . ./lib-git-p4.sh
11
12 test_expect_success 'start p4d' '
t/t9833-errors.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='git p4 errors'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-git-p4.sh
7
8 test_expect_success 'start p4d' '
t/t9834-git-p4-file-dir-bug.sh
+1
@@ -6,6 +6,7 @@ This test creates files and directories with the same name in perforce and
6 checks that git-p4 recovers from the error at the same time as the perforce
7 repository.'
8
9 +TEST_PASSES_SANITIZE_LEAK=true
10 . ./lib-git-p4.sh
11
12 test_expect_success 'start p4d' '
t/t9835-git-p4-metadata-encoding-python2.sh
+1
@@ -6,6 +6,7 @@ This test checks that the import process handles inconsistent text
6 encoding in p4 metadata (author names, commit messages, etc) without
7 failing, and produces maximally sane output in git.'
8
9 +TEST_PASSES_SANITIZE_LEAK=true
10 . ./lib-git-p4.sh
11
12 python_target_version='2'
t/t9836-git-p4-metadata-encoding-python3.sh
+1
@@ -6,6 +6,7 @@ This test checks that the import process handles inconsistent text
6 encoding in p4 metadata (author names, commit messages, etc) without
7 failing, and produces maximally sane output in git.'
8
9 +TEST_PASSES_SANITIZE_LEAK=true
10 . ./lib-git-p4.sh
11
12 python_target_version='3'