]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark all checkout-index tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 12 Oct 2021 13:56:41 +0000 (15:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2021 01:23:24 +0000 (18:23 -0700)
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>
t/t2002-checkout-cache-u.sh
t/t2003-checkout-cache-mkdir.sh
t/t2004-checkout-cache-temp.sh
t/t2005-checkout-index-symlinks.sh
t/t2081-parallel-checkout-collisions.sh

index 70361c806e1baf1b26810983374c53eb49ea2f2d..fc95cf90485366314dcebb7fe77f18b1d8d4ef1b 100755 (executable)
@@ -8,6 +8,7 @@ test_description='git checkout-index -u test.
 With -u flag, git checkout-index internally runs the equivalent of
 git update-index --refresh on the checked out entry.'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success \
index ff163cf6750f6d82c36964eb694efbcfae06135f..f0fd441d810d52c909476a76107098d16ecc9f35 100755 (executable)
@@ -10,6 +10,7 @@ also verifies that such leading path may contain symlinks, unlike
 the GIT controlled paths.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index a9352b08a8b80e4a58131f31f98eb7481914ecbe..9bb503a97578c1d43a01409a93e2dd4f7c207a43 100755 (executable)
@@ -8,6 +8,7 @@ test_description='git checkout-index --temp test.
 With --temp flag, git checkout-index writes to temporary merge files
 rather than the tracked path.'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index 9fa561047430ae40a1860131a024e4fd7744f5cb..112682a45a1df3d5c19eab03ec79c1202d2cab71 100755 (executable)
@@ -8,6 +8,7 @@ test_description='git checkout-index on filesystem w/o symlinks test.
 This tests that git checkout-index creates a symbolic link as a plain
 file if core.symlinks is false.'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success \
index f6fcfc0c1e403930a602e694fe3bf7632b81192a..6acdb89d12bd046674c27aba12119a231dbb0f08 100755 (executable)
@@ -11,6 +11,7 @@ The tests in this file exercise parallel checkout's collision detection code in
 both these mechanics.
 "
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-parallel-checkout.sh"