leak tests: mark some config tests as passing with SANITIZE=leak

Mark some tests that match "*config*" 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:
Ævar Arnfjörð Bjarmason 2021-10-31 00:24:23 +02:00 committed by Junio C Hamano
parent 94882d1245
commit 676063016a
7 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ test_description='Test git config in different settings'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'clear default config' ' test_expect_success 'clear default config' '

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
test_description='Test wacky input to git config' test_description='Test wacky input to git config'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
# Leaving off the newline is intentional! # Leaving off the newline is intentional!

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
test_description='support for reading config from a blob' test_description='support for reading config from a blob'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'create config blob' ' test_expect_success 'create config blob' '

View File

@ -2,6 +2,7 @@
test_description='Test git config-set API in different settings' test_description='Test git config-set API in different settings'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
# 'check_config get_* section.key value' verifies that the entry for # 'check_config get_* section.key value' verifies that the entry for

View File

@ -2,6 +2,7 @@
test_description='Test read_early_config()' test_description='Test read_early_config()'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'read early config' ' test_expect_success 'read early config' '

View File

@ -2,6 +2,7 @@
test_description='Test git config in different settings (with --default)' test_description='Test git config in different settings (with --default)'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'uses --default when entry missing' ' test_expect_success 'uses --default when entry missing' '

View File

@ -2,6 +2,7 @@
test_description="config file in multi worktree" test_description="config file in multi worktree"
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh
test_expect_success 'setup' ' test_expect_success 'setup' '