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>
This commit is contained in:
parent
0033ab3f59
commit
b7bcdbdb48
@ -8,6 +8,7 @@ test_description='git checkout-index -u test.
|
|||||||
With -u flag, git checkout-index internally runs the equivalent of
|
With -u flag, git checkout-index internally runs the equivalent of
|
||||||
git update-index --refresh on the checked out entry.'
|
git update-index --refresh on the checked out entry.'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success \
|
test_expect_success \
|
||||||
|
@ -10,6 +10,7 @@ also verifies that such leading path may contain symlinks, unlike
|
|||||||
the GIT controlled paths.
|
the GIT controlled paths.
|
||||||
'
|
'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
|
@ -8,6 +8,7 @@ test_description='git checkout-index --temp test.
|
|||||||
With --temp flag, git checkout-index writes to temporary merge files
|
With --temp flag, git checkout-index writes to temporary merge files
|
||||||
rather than the tracked path.'
|
rather than the tracked path.'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
|
@ -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
|
This tests that git checkout-index creates a symbolic link as a plain
|
||||||
file if core.symlinks is false.'
|
file if core.symlinks is false.'
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success \
|
test_expect_success \
|
||||||
|
@ -11,6 +11,7 @@ The tests in this file exercise parallel checkout's collision detection code in
|
|||||||
both these mechanics.
|
both these mechanics.
|
||||||
"
|
"
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
. "$TEST_DIRECTORY/lib-parallel-checkout.sh"
|
. "$TEST_DIRECTORY/lib-parallel-checkout.sh"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user