Browse Source

leak tests: run various built-in tests in t00*.sh SANITIZE=leak

Mark various existing tests in t00*.sh that invoke git built-ins with
TEST_PASSES_SANITIZE_LEAK=true 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
c150064dbe
  1. 1
      t/t0001-init.sh
  2. 1
      t/t0002-gitfile.sh
  3. 1
      t/t0003-attributes.sh
  4. 2
      t/t0005-signals.sh
  5. 2
      t/t0007-git-var.sh
  6. 1
      t/t0008-ignores.sh
  7. 1
      t/t0010-racy-git.sh
  8. 1
      t/t0022-crlf-rename.sh
  9. 1
      t/t0024-crlf-archive.sh
  10. 1
      t/t0025-crlf-renormalize.sh
  11. 1
      t/t0026-eol-config.sh
  12. 1
      t/t0029-core-unsetenvvars.sh
  13. 1
      t/t0055-beyond-symlinks.sh

1
t/t0001-init.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='git init'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

check_config () {

1
t/t0002-gitfile.sh

@ -7,6 +7,7 @@ Verify that plumbing commands work when .git is a file @@ -7,6 +7,7 @@ Verify that plumbing commands work when .git is a file
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

objpath() {

1
t/t0003-attributes.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description=gitattributes

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

attr_check_basic () {

2
t/t0005-signals.sh

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

test_description='signals work as we expect'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

cat >expect <<EOF

2
t/t0007-git-var.sh

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

test_description='basic sanity checks for git var'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success 'get GIT_AUTHOR_IDENT' '

1
t/t0008-ignores.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description=check-ignore

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

init_vars () {

1
t/t0010-racy-git.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='racy GIT'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

# This test can give false success if your machine is sufficiently

1
t/t0022-crlf-rename.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='ignore CR in CRLF sequence while computing similiarity'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success setup '

1
t/t0024-crlf-archive.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='respect crlf in git archive'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success setup '

1
t/t0025-crlf-renormalize.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='CRLF renormalization'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success setup '

1
t/t0026-eol-config.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='CRLF conversion'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

has_cr() {

1
t/t0029-core-unsetenvvars.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='test the Windows-only core.unsetenvvars setting'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

if ! test_have_prereq MINGW

1
t/t0055-beyond-symlinks.sh

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@

test_description='update-index and add refuse to add beyond symlinks'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success SYMLINKS setup '

Loading…
Cancel
Save