зеркало из https://github.com/microsoft/git.git
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:
Родитель
618200d243
Коммит
d96fb140f9
|
@ -4,6 +4,8 @@
|
|||
#
|
||||
|
||||
test_description='Test fsck --lost-found'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='index file specific tests'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
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
|
||||
# the conflicting paths and succeed.
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
show_files() {
|
||||
|
|
|
@ -22,6 +22,7 @@ and tries to git update-index --add the following:
|
|||
All of the attempts should fail.
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
mkdir path2 path3
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
test_description='Test git stash in a worktree'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
test_description='Rename interaction with pathspec.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='git archive attribute pattern tests'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_exists() {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='Test git update-server-info'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' 'test_commit file'
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='pack should notice missing commit objects'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='test functionality common to smart fetch & push'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
|
|
@ -5,6 +5,7 @@ test_description='test protocol v2 server commands'
|
|||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
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
|
||||
communications if the other side says something unexpected. We are mostly
|
||||
making sure that we do not segfault or otherwise behave badly.'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'extra delim packet in v2 ls-refs args' '
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='diagnosing out-of-scope pathspec'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup a bare and non-bare repository' '
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
#
|
||||
|
||||
test_description='git reset should cull empty subdirs'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff-data.sh
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
test_description='git reset in a bare repository'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup non-bare' '
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='git status rename detection options'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='commit --pathspec-from-file'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_tick
|
||||
|
|
Загрузка…
Ссылка в новой задаче