Browse Source

leak tests: mark various "generic" tests as passing with SANITIZE=leak

Mark various "generic" tests as passing when git is compiled with
SANITIZE=leak. These tests were subjectively picked from the lists of
passing tests since they're all small, and test some generic feature
such as wildmatch(), commonly used environment variables, ident
parsing etc.

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
288a480621
  1. 1
      t/t1430-bad-ref-name.sh
  2. 2
      t/t1504-ceiling-dirs.sh
  3. 1
      t/t1510-repo-setup.sh
  4. 1
      t/t2050-git-dir-relative.sh
  5. 1
      t/t2300-cd-to-toplevel.sh
  6. 1
      t/t3070-wildmatch.sh
  7. 1
      t/t3205-branch-color.sh
  8. 1
      t/t3211-peel-ref.sh
  9. 1
      t/t3300-funny-names.sh
  10. 1
      t/t3902-quoted.sh
  11. 2
      t/t4026-color.sh
  12. 1
      t/t5580-unc-paths.sh
  13. 2
      t/t5615-alternate-env.sh
  14. 2
      t/t7518-ident-corner-cases.sh

1
t/t1430-bad-ref-name.sh

@ -4,6 +4,7 @@ test_description='Test handling of ref names that check-ref-format rejects' @@ -4,6 +4,7 @@ test_description='Test handling of ref names that check-ref-format rejects'
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 setup '

2
t/t1504-ceiling-dirs.sh

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

test_description='test GIT_CEILING_DIRECTORIES'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_prefix() {

1
t/t1510-repo-setup.sh

@ -43,6 +43,7 @@ A few rules for repo setup: @@ -43,6 +43,7 @@ A few rules for repo setup:
# This test heavily relies on the standard error of nested function calls.
test_untraceable=UnfortunatelyYes

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

here=$(pwd)

1
t/t2050-git-dir-relative.sh

@ -12,6 +12,7 @@ into the subdir while keeping the worktree location, @@ -12,6 +12,7 @@ into the subdir while keeping the worktree location,
and tries commits from the top and the subdir, checking
that the commit-hook still gets called.'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

COMMIT_FILE="$(pwd)/output"

1
t/t2300-cd-to-toplevel.sh

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

test_description='cd_to_toplevel'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

EXEC_PATH="$(git --exec-path)"

1
t/t3070-wildmatch.sh

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

test_description='wildmatch tests'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

# Disable expensive chain-lint tests; all of the tests in this script

1
t/t3205-branch-color.sh

@ -4,6 +4,7 @@ test_description='basic branch output coloring' @@ -4,6 +4,7 @@ test_description='basic branch output coloring'
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 'set up some sample branches' '

1
t/t3211-peel-ref.sh

@ -4,6 +4,7 @@ test_description='tests for the peel_ref optimization of packed-refs' @@ -4,6 +4,7 @@ test_description='tests for the peel_ref optimization of packed-refs'
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 'create annotated tag in refs/tags' '

1
t/t3300-funny-names.sh

@ -9,6 +9,7 @@ This test tries pathnames with funny characters in the working @@ -9,6 +9,7 @@ This test tries pathnames with funny characters in the working
tree, index, and tree objects.
'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

HT=' '

1
t/t3902-quoted.sh

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@

test_description='quoted output'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

FN='濱野'

2
t/t4026-color.sh

@ -4,6 +4,8 @@ @@ -4,6 +4,8 @@
#

test_description='Test diff/status color escape codes'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

ESC=$(printf '\033')

1
t/t5580-unc-paths.sh

@ -4,6 +4,7 @@ test_description='various Windows-only path tests' @@ -4,6 +4,7 @@ test_description='various Windows-only path tests'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

if test_have_prereq CYGWIN

2
t/t5615-alternate-env.sh

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

test_description='handling of alternates in environment variables'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

check_obj () {

2
t/t7518-ident-corner-cases.sh

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

test_description='corner cases in ident strings'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

# confirm that we do not segfault _and_ that we do not say "(null)", as

Loading…
Cancel
Save