Skip to content

Commit b7bcdbd

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0033ab3 commit b7bcdbd

5 files changed

+5
-0
lines changed

t/t2002-checkout-cache-u.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test_description='git checkout-index -u test.
88
With -u flag, git checkout-index internally runs the equivalent of
99
git update-index --refresh on the checked out entry.'
1010

11+
TEST_PASSES_SANITIZE_LEAK=true
1112
. ./test-lib.sh
1213

1314
test_expect_success \

t/t2003-checkout-cache-mkdir.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ also verifies that such leading path may contain symlinks, unlike
1010
the GIT controlled paths.
1111
'
1212

13+
TEST_PASSES_SANITIZE_LEAK=true
1314
. ./test-lib.sh
1415

1516
test_expect_success 'setup' '

t/t2004-checkout-cache-temp.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test_description='git checkout-index --temp test.
88
With --temp flag, git checkout-index writes to temporary merge files
99
rather than the tracked path.'
1010

11+
TEST_PASSES_SANITIZE_LEAK=true
1112
. ./test-lib.sh
1213

1314
test_expect_success 'setup' '

t/t2005-checkout-index-symlinks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test_description='git checkout-index on filesystem w/o symlinks test.
88
This tests that git checkout-index creates a symbolic link as a plain
99
file if core.symlinks is false.'
1010

11+
TEST_PASSES_SANITIZE_LEAK=true
1112
. ./test-lib.sh
1213

1314
test_expect_success \

t/t2081-parallel-checkout-collisions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The tests in this file exercise parallel checkout's collision detection code in
1111
both these mechanics.
1212
"
1313

14+
TEST_PASSES_SANITIZE_LEAK=true
1415
. ./test-lib.sh
1516
. "$TEST_DIRECTORY/lib-parallel-checkout.sh"
1617

0 commit comments

Comments
 (0)