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>maint
parent
d707d23d2c
commit
63ee933383
|
@ -5,6 +5,7 @@ test_description='git p4 tests'
|
||||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -5,6 +5,7 @@ test_description='git p4 tests for p4 branches'
|
||||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 filetype tests'
|
test_description='git p4 filetype tests'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 transparency to shell metachars in filenames'
|
test_description='git p4 transparency to shell metachars in filenames'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 label tests'
|
test_description='git p4 label tests'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 skipSubmitEdit config variables'
|
test_description='git p4 skipSubmitEdit config variables'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -5,6 +5,7 @@ test_description='git p4 options'
|
||||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 relative chdir'
|
test_description='git p4 relative chdir'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 client view'
|
test_description='git p4 client view'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 rcs keywords'
|
test_description='git p4 rcs keywords'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
CP1252="\223\224"
|
CP1252="\223\224"
|
||||||
|
|
|
@ -5,6 +5,7 @@ test_description='git p4 label tests'
|
||||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 wildcards'
|
test_description='git p4 wildcards'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 preserve users'
|
test_description='git p4 preserve users'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 rename'
|
test_description='git p4 rename'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 submit failure handling'
|
test_description='git p4 submit failure handling'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 locked file behavior'
|
test_description='git p4 locked file behavior'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 tests for excluded paths during clone and sync'
|
test_description='git p4 tests for excluded paths during clone and sync'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 fetching changes in multiple blocks'
|
test_description='git p4 fetching changes in multiple blocks'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='interaction with P4 case-folding'
|
test_description='interaction with P4 case-folding'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
if test_have_prereq CASE_INSENSITIVE_FS
|
if test_have_prereq CASE_INSENSITIVE_FS
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 handling of EDITOR'
|
test_description='git p4 handling of EDITOR'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='Clone repositories with path case variations'
|
test_description='Clone repositories with path case variations'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d with case folding enabled' '
|
test_expect_success 'start p4d with case folding enabled' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='Clone repositories with non ASCII paths'
|
test_description='Clone repositories with non ASCII paths'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
UTF8_ESCAPED="a-\303\244_o-\303\266_u-\303\274.txt"
|
UTF8_ESCAPED="a-\303\244_o-\303\266_u-\303\274.txt"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='Clone repositories and store files in Mock LFS'
|
test_description='Clone repositories and store files in Mock LFS'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_file_is_not_in_mock_lfs () {
|
test_file_is_not_in_mock_lfs () {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 handling of UTF-16 files without BOM'
|
test_description='git p4 handling of UTF-16 files without BOM'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
UTF16="\227\000\227\000"
|
UTF16="\227\000\227\000"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='Clone repositories and keep empty commits'
|
test_description='Clone repositories and keep empty commits'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 support for file type change'
|
test_description='git p4 support for file type change'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='Clone repositories and map users'
|
test_description='Clone repositories and map users'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 retrieve job info'
|
test_description='git p4 retrieve job info'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 symlinked directories'
|
test_description='git p4 symlinked directories'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 with server triggers'
|
test_description='git p4 with server triggers'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -6,6 +6,7 @@ last_shelved_change () {
|
||||||
|
|
||||||
test_description='git p4 unshelve'
|
test_description='git p4 unshelve'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
test_description='git p4 errors'
|
test_description='git p4 errors'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -6,6 +6,7 @@ This test creates files and directories with the same name in perforce and
|
||||||
checks that git-p4 recovers from the error at the same time as the perforce
|
checks that git-p4 recovers from the error at the same time as the perforce
|
||||||
repository.'
|
repository.'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
test_expect_success 'start p4d' '
|
test_expect_success 'start p4d' '
|
||||||
|
|
|
@ -6,6 +6,7 @@ This test checks that the import process handles inconsistent text
|
||||||
encoding in p4 metadata (author names, commit messages, etc) without
|
encoding in p4 metadata (author names, commit messages, etc) without
|
||||||
failing, and produces maximally sane output in git.'
|
failing, and produces maximally sane output in git.'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
python_target_version='2'
|
python_target_version='2'
|
||||||
|
|
|
@ -6,6 +6,7 @@ This test checks that the import process handles inconsistent text
|
||||||
encoding in p4 metadata (author names, commit messages, etc) without
|
encoding in p4 metadata (author names, commit messages, etc) without
|
||||||
failing, and produces maximally sane output in git.'
|
failing, and produces maximally sane output in git.'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./lib-git-p4.sh
|
. ./lib-git-p4.sh
|
||||||
|
|
||||||
python_target_version='3'
|
python_target_version='3'
|
||||||
|
|
Loading…
Reference in New Issue