leak tests: mark some misc tests as passing with SANITIZE=leak

As in 7ff24785cb (leak tests: mark some misc tests as passing with
SANITIZE=leak, 2021-10-12) continue marking various miscellaneous
tests as passing when git is compiled with SANITIZE=leak. They'll now
be listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true"
test mode (the "linux-leaks" CI target).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason 2021-10-31 00:24:13 +02:00 коммит произвёл Junio C Hamano
Родитель 618200d243
Коммит d96fb140f9
17 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,8 @@
# #
test_description='Test fsck --lost-found' test_description='Test fsck --lost-found'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success setup ' test_expect_success setup '

Просмотреть файл

@ -2,6 +2,7 @@
test_description='index file specific tests' test_description='index file specific tests'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
sane_unset GIT_TEST_SPLIT_INDEX sane_unset GIT_TEST_SPLIT_INDEX

Просмотреть файл

@ -21,6 +21,7 @@ test_description='git conflicts when checking files out test.'
# path1 is occupied by a non-directory. With "-f" flag, it should remove # path1 is occupied by a non-directory. With "-f" flag, it should remove
# the conflicting paths and succeed. # the conflicting paths and succeed.
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
show_files() { show_files() {

Просмотреть файл

@ -22,6 +22,7 @@ and tries to git update-index --add the following:
All of the attempts should fail. All of the attempts should fail.
' '
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
mkdir path2 path3 mkdir path2 path3

Просмотреть файл

@ -5,6 +5,7 @@
test_description='Test git stash in a worktree' test_description='Test git stash in a worktree'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup' ' test_expect_success 'setup' '

Просмотреть файл

@ -6,6 +6,8 @@
test_description='Rename interaction with pathspec. test_description='Rename interaction with pathspec.
' '
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash . "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash

Просмотреть файл

@ -2,6 +2,7 @@
test_description='git archive attribute pattern tests' test_description='git archive attribute pattern tests'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_exists() { test_expect_exists() {

Просмотреть файл

@ -2,6 +2,7 @@
test_description='Test git update-server-info' test_description='Test git update-server-info'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup' 'test_commit file' test_expect_success 'setup' 'test_commit file'

Просмотреть файл

@ -2,6 +2,7 @@
test_description='pack should notice missing commit objects' test_description='pack should notice missing commit objects'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success setup ' test_expect_success setup '

Просмотреть файл

@ -2,6 +2,7 @@
test_description='test functionality common to smart fetch & push' test_description='test functionality common to smart fetch & push'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup' ' test_expect_success 'setup' '

Просмотреть файл

@ -5,6 +5,7 @@ test_description='test protocol v2 server commands'
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
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'test capability advertisement' ' test_expect_success 'test capability advertisement' '

Просмотреть файл

@ -4,6 +4,8 @@ test_description='Test responses to violations of the network protocol. In most
of these cases it will generally be acceptable for one side to break off of these cases it will generally be acceptable for one side to break off
communications if the other side says something unexpected. We are mostly communications if the other side says something unexpected. We are mostly
making sure that we do not segfault or otherwise behave badly.' making sure that we do not segfault or otherwise behave badly.'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'extra delim packet in v2 ls-refs args' ' test_expect_success 'extra delim packet in v2 ls-refs args' '

Просмотреть файл

@ -2,6 +2,7 @@
test_description='diagnosing out-of-scope pathspec' test_description='diagnosing out-of-scope pathspec'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup a bare and non-bare repository' ' test_expect_success 'setup a bare and non-bare repository' '

Просмотреть файл

@ -4,6 +4,8 @@
# #
test_description='git reset should cull empty subdirs' test_description='git reset should cull empty subdirs'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
. "$TEST_DIRECTORY"/lib-diff-data.sh . "$TEST_DIRECTORY"/lib-diff-data.sh

Просмотреть файл

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
test_description='git reset in a bare repository' test_description='git reset in a bare repository'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup non-bare' ' test_expect_success 'setup non-bare' '

Просмотреть файл

@ -2,6 +2,7 @@
test_description='git status rename detection options' test_description='git status rename detection options'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup' ' test_expect_success 'setup' '

Просмотреть файл

@ -2,6 +2,7 @@
test_description='commit --pathspec-from-file' test_description='commit --pathspec-from-file'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_tick test_tick