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 2021-10-12 15:56:44 +02:00 committed by Junio C Hamano
parent 98300c8157
commit 288a480621
14 changed files with 18 additions and 0 deletions

View File

@ -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 '

View File

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

test_description='test GIT_CEILING_DIRECTORIES'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_prefix() {

View File

@ -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)

View File

@ -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"

View File

@ -2,6 +2,7 @@

test_description='cd_to_toplevel'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

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

View File

@ -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

View File

@ -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' '

View File

@ -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' '

View File

@ -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=' '

View File

@ -5,6 +5,7 @@

test_description='quoted output'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

FN='濱野'

View File

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

test_description='Test diff/status color escape codes'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

ESC=$(printf '\033')

View File

@ -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

View File

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

test_description='handling of alternates in environment variables'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

check_obj () {

View File

@ -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