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

Mark some tests that match "*apply*" 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:18 +02:00 committed by Junio C Hamano
parent ca08972495
commit f54f48fc07
22 changed files with 44 additions and 0 deletions

View file

@ -6,6 +6,8 @@
test_description='git apply --stat --summary test, with --recount
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
UNC='s/^\(@@ -[1-9][0-9]*\),[0-9]* \(+[1-9][0-9]*\),[0-9]* @@/\1,999 \2,999 @@/'

View file

@ -6,6 +6,8 @@
test_description='git apply should handle files with incomplete lines.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
# setup

View file

@ -6,6 +6,8 @@
test_description='git apply handling copy/rename patch.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
# setup

View file

@ -2,6 +2,8 @@
test_description='apply with fuzz and offset'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
dotest () {

View file

@ -2,6 +2,8 @@
test_description='git apply --numstat - <patch'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -6,6 +6,8 @@
test_description='git apply test patches with multiple fragments.'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
cp "$TEST_DIRECTORY/t4109/patch1.patch" .

View file

@ -7,6 +7,8 @@
test_description='git apply test for patches which require scanning forwards and backwards.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'git apply scan' '

View file

@ -7,6 +7,8 @@ test_description='git apply should not get confused with rename/copy.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
# setup

View file

@ -7,6 +7,8 @@ test_description='git apply in reverse
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -7,6 +7,8 @@ test_description='git apply with new style GNU diff with empty context
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -7,6 +7,8 @@ test_description='git apply --whitespace=strip and configuration file.
'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -2,6 +2,8 @@
test_description='apply a patch that is larger than the preimage'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
cat >F <<\EOF

View file

@ -2,6 +2,8 @@
test_description='apply empty'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -2,6 +2,8 @@
test_description='apply same filename'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
modify () {

View file

@ -2,6 +2,8 @@
test_description='apply same filename'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'setup' '

View file

@ -2,6 +2,8 @@
test_description='applying patch with mode bits'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -1,6 +1,8 @@
#!/bin/sh
test_description='git apply handling criss-cross rename patch.'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
create_file() {

View file

@ -4,6 +4,8 @@
test_description='git-apply notices removal patches generated by GNU diff'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -5,6 +5,8 @@
test_description='git apply filename consistency check'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -5,6 +5,8 @@
test_description='git apply submodule tests'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '

View file

@ -2,6 +2,8 @@
test_description='git apply should exit non-zero with unrecognized input.'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'setup' '

View file

@ -1,6 +1,8 @@
#!/bin/sh
test_description='paths written by git-apply cannot escape the working tree'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
# tests will try to write to ../foo, and we do not