Browse Source

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>
maint
Ævar Arnfjörð Bjarmason 3 years ago committed by Junio C Hamano
parent
commit
f54f48fc07
  1. 2
      t/t4100-apply-stat.sh
  2. 2
      t/t4101-apply-nonl.sh
  3. 2
      t/t4102-apply-rename.sh
  4. 2
      t/t4105-apply-fuzz.sh
  5. 2
      t/t4106-apply-stdin.sh
  6. 2
      t/t4109-apply-multifrag.sh
  7. 2
      t/t4110-apply-scan.sh
  8. 2
      t/t4112-apply-renames.sh
  9. 2
      t/t4116-apply-reverse.sh
  10. 2
      t/t4118-apply-empty-context.sh
  11. 2
      t/t4119-apply-config.sh
  12. 2
      t/t4123-apply-shrink.sh
  13. 2
      t/t4126-apply-empty.sh
  14. 2
      t/t4127-apply-same-fn.sh
  15. 2
      t/t4128-apply-root.sh
  16. 2
      t/t4129-apply-samemode.sh
  17. 2
      t/t4130-apply-criss-cross-rename.sh
  18. 2
      t/t4132-apply-removal.sh
  19. 2
      t/t4133-apply-filenames.sh
  20. 2
      t/t4134-apply-submodule.sh
  21. 2
      t/t4136-apply-check.sh
  22. 2
      t/t4139-apply-escape.sh

2
t/t4100-apply-stat.sh

@ -6,6 +6,8 @@
test_description='git apply --stat --summary test, with --recount test_description='git apply --stat --summary test, with --recount


' '

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


UNC='s/^\(@@ -[1-9][0-9]*\),[0-9]* \(+[1-9][0-9]*\),[0-9]* @@/\1,999 \2,999 @@/' UNC='s/^\(@@ -[1-9][0-9]*\),[0-9]* \(+[1-9][0-9]*\),[0-9]* @@/\1,999 \2,999 @@/'

2
t/t4101-apply-nonl.sh

@ -6,6 +6,8 @@
test_description='git apply should handle files with incomplete lines. test_description='git apply should handle files with incomplete lines.


' '

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


# setup # setup

2
t/t4102-apply-rename.sh

@ -6,6 +6,8 @@
test_description='git apply handling copy/rename patch. test_description='git apply handling copy/rename patch.


' '

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


# setup # setup

2
t/t4105-apply-fuzz.sh

@ -2,6 +2,8 @@


test_description='apply with fuzz and offset' test_description='apply with fuzz and offset'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


dotest () { dotest () {

2
t/t4106-apply-stdin.sh

@ -2,6 +2,8 @@


test_description='git apply --numstat - <patch' test_description='git apply --numstat - <patch'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4109-apply-multifrag.sh

@ -6,6 +6,8 @@


test_description='git apply test patches with multiple fragments.' test_description='git apply test patches with multiple fragments.'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


cp "$TEST_DIRECTORY/t4109/patch1.patch" . cp "$TEST_DIRECTORY/t4109/patch1.patch" .

2
t/t4110-apply-scan.sh

@ -7,6 +7,8 @@
test_description='git apply test for patches which require scanning forwards and backwards. test_description='git apply test for patches which require scanning forwards and backwards.


' '

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success 'git apply scan' ' test_expect_success 'git apply scan' '

2
t/t4112-apply-renames.sh

@ -7,6 +7,8 @@ test_description='git apply should not get confused with rename/copy.


' '



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


# setup # setup

2
t/t4116-apply-reverse.sh

@ -7,6 +7,8 @@ test_description='git apply in reverse


' '



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4118-apply-empty-context.sh

@ -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-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4119-apply-config.sh

@ -7,6 +7,8 @@ test_description='git apply --whitespace=strip and configuration file.


' '



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4123-apply-shrink.sh

@ -2,6 +2,8 @@


test_description='apply a patch that is larger than the preimage' test_description='apply a patch that is larger than the preimage'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


cat >F <<\EOF cat >F <<\EOF

2
t/t4126-apply-empty.sh

@ -2,6 +2,8 @@


test_description='apply empty' test_description='apply empty'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4127-apply-same-fn.sh

@ -2,6 +2,8 @@


test_description='apply same filename' test_description='apply same filename'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


modify () { modify () {

2
t/t4128-apply-root.sh

@ -2,6 +2,8 @@


test_description='apply same filename' test_description='apply same filename'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success 'setup' ' test_expect_success 'setup' '

2
t/t4129-apply-samemode.sh

@ -2,6 +2,8 @@


test_description='applying patch with mode bits' test_description='applying patch with mode bits'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4130-apply-criss-cross-rename.sh

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh


test_description='git apply handling criss-cross rename patch.' test_description='git apply handling criss-cross rename patch.'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


create_file() { create_file() {

2
t/t4132-apply-removal.sh

@ -4,6 +4,8 @@


test_description='git-apply notices removal patches generated by GNU diff' test_description='git-apply notices removal patches generated by GNU diff'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4133-apply-filenames.sh

@ -5,6 +5,8 @@


test_description='git apply filename consistency check' test_description='git apply filename consistency check'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4134-apply-submodule.sh

@ -5,6 +5,8 @@


test_description='git apply submodule tests' test_description='git apply submodule tests'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success setup ' test_expect_success setup '

2
t/t4136-apply-check.sh

@ -2,6 +2,8 @@


test_description='git apply should exit non-zero with unrecognized input.' test_description='git apply should exit non-zero with unrecognized input.'



TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


test_expect_success 'setup' ' test_expect_success 'setup' '

2
t/t4139-apply-escape.sh

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh


test_description='paths written by git-apply cannot escape the working tree' test_description='paths written by git-apply cannot escape the working tree'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh


# tests will try to write to ../foo, and we do not # tests will try to write to ../foo, and we do not

Loading…
Cancel
Save