leak tests: mark all checkout-index tests as passing with SANITIZE=leak

Mark some tests that match "*{checkout,switch}*" 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). Unfortunately almost all of those tests fail when compiled with SANITIZE=leak, these only pass because they run "checkout-index", not the main "checkout" command. 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 12, 2021 at 15:56 UTC b7bcdbdb482d469fec5c7dac0568432f80cd512d
5 files changed +5
t/t2002-checkout-cache-u.sh
+1
@@ -8,6 +8,7 @@ test_description='git checkout-index -u test.
8 With -u flag, git checkout-index internally runs the equivalent of
9 git update-index --refresh on the checked out entry.'
10
11 +TEST_PASSES_SANITIZE_LEAK=true
12 . ./test-lib.sh
13
14 test_expect_success \
t/t2003-checkout-cache-mkdir.sh
+1
@@ -10,6 +10,7 @@ also verifies that such leading path may contain symlinks, unlike
10 the GIT controlled paths.
11 '
12
13 +TEST_PASSES_SANITIZE_LEAK=true
14 . ./test-lib.sh
15
16 test_expect_success 'setup' '
t/t2004-checkout-cache-temp.sh
+1
@@ -8,6 +8,7 @@ test_description='git checkout-index --temp test.
8 With --temp flag, git checkout-index writes to temporary merge files
9 rather than the tracked path.'
10
11 +TEST_PASSES_SANITIZE_LEAK=true
12 . ./test-lib.sh
13
14 test_expect_success 'setup' '
t/t2005-checkout-index-symlinks.sh
+1
@@ -8,6 +8,7 @@ test_description='git checkout-index on filesystem w/o symlinks test.
8 This tests that git checkout-index creates a symbolic link as a plain
9 file if core.symlinks is false.'
10
11 +TEST_PASSES_SANITIZE_LEAK=true
12 . ./test-lib.sh
13
14 test_expect_success \
t/t2081-parallel-checkout-collisions.sh
+1
@@ -11,6 +11,7 @@ The tests in this file exercise parallel checkout's collision detection code in
11 both these mechanics.
12 "
13
14 +TEST_PASSES_SANITIZE_LEAK=true
15 . ./test-lib.sh
16 . "$TEST_DIRECTORY/lib-parallel-checkout.sh"
17