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>

Ævar Arnfjörð Bjarmason committed Oct 31, 2021 at 00:24 UTC 676063016ad90867c283529892e2721e1994ef08
7 files changed +9
t/t1300-config.sh
+1
@@ -8,6 +8,7 @@ test_description='Test git config in different settings'
8 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
9 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10
11 +TEST_PASSES_SANITIZE_LEAK=true
12 . ./test-lib.sh
13
14 test_expect_success 'clear default config' '
t/t1303-wacky-config.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='Test wacky input to git config'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 # Leaving off the newline is intentional!
t/t1307-config-blob.sh
+2
@@ -1,6 +1,8 @@
1 #!/bin/sh
2
3 test_description='support for reading config from a blob'
4 +
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'create config blob' '
t/t1308-config-set.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test git config-set API in different settings'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 # 'check_config get_* section.key value' verifies that the entry for
t/t1309-early-config.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test read_early_config()'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'read early config' '
t/t1310-config-default.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description='Test git config in different settings (with --default)'
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'uses --default when entry missing' '
t/t2404-worktree-config.sh
+1
@@ -2,6 +2,7 @@
2
3 test_description="config file in multi worktree"
4
5 +TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'setup' '