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:
parent
ca08972495
commit
f54f48fc07
t
t4100-apply-stat.sht4101-apply-nonl.sht4102-apply-rename.sht4105-apply-fuzz.sht4106-apply-stdin.sht4109-apply-multifrag.sht4110-apply-scan.sht4112-apply-renames.sht4116-apply-reverse.sht4118-apply-empty-context.sht4119-apply-config.sht4123-apply-shrink.sht4126-apply-empty.sht4127-apply-same-fn.sht4128-apply-root.sht4129-apply-samemode.sht4130-apply-criss-cross-rename.sht4132-apply-removal.sht4133-apply-filenames.sht4134-apply-submodule.sht4136-apply-check.sht4139-apply-escape.sh
@ -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 @@/'
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='git apply should handle files with incomplete lines.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# setup
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='git apply handling copy/rename patch.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# setup
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply with fuzz and offset'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
dotest () {
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='git apply --numstat - <patch'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -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" .
|
||||
|
@ -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' '
|
||||
|
@ -7,6 +7,8 @@ test_description='git apply should not get confused with rename/copy.
|
||||
|
||||
'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# setup
|
||||
|
@ -7,6 +7,8 @@ test_description='git apply in reverse
|
||||
|
||||
'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -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 '
|
||||
|
@ -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 '
|
||||
|
@ -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
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply empty'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply same filename'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
modify () {
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply same filename'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='applying patch with mode bits'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -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() {
|
||||
|
@ -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 '
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
test_description='git apply filename consistency check'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
test_description='git apply submodule tests'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -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' '
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user