]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark some config tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2021 22:24:23 +0000 (00:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Nov 2021 18:23:08 +0000 (11:23 -0700)
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>
t/t1300-config.sh
t/t1303-wacky-config.sh
t/t1307-config-blob.sh
t/t1308-config-set.sh
t/t1309-early-config.sh
t/t1310-config-default.sh
t/t2404-worktree-config.sh

index 9ff46f3b0471fb146bec00329459040619edd88e..f8031afaaf9199a48c1bd359c3c120be2abf65c4 100755 (executable)
@@ -8,6 +8,7 @@ test_description='Test git config in different settings'
 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 'clear default config' '
index 0000e664e7b6d8c62cc12032f71224b832829e9d..0506f3d6bba6cb64255a1b7685481b8ccdb7784d 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='Test wacky input to git config'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 # Leaving off the newline is intentional!
index 930dce06f0fdff755d4ea0b4f81c8fed776440c6..0a7099d6f52b68cf9abc263933267925a994378a 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='support for reading config from a blob'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'create config blob' '
index 88b119a0a35dc6608a789b0415a97650c88b2e19..b38e158d3b212a0157f5d0f862103713c6a39e57 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test git config-set API in different settings'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 # 'check_config get_* section.key value' verifies that the entry for
index b4a9158307fd210079211165fb507a037ceb75f0..537435b90ae9314a8062c81186fd00853d38b230 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test read_early_config()'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'read early config' '
index 6049d9170814320e0d9035c357d76dcfe9887708..09b10c144ba9d162635a12d66b8796b9cd94fb6c 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test git config in different settings (with --default)'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'uses --default when entry missing' '
index 9536d1091954b48a87b74eead0c382ce70355c4e..842937bfb9a8a660bf0696df324ec71f6693ae5b 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description="config file in multi worktree"
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '