mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
98300c8157
Mark some tests that match "*read-tree*" 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). We still have around half the tests that match "*read-tree*" failing, but let's whitelist those that don't. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
29 lines
541 B
Bash
Executable file
29 lines
541 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='test read-tree into a fresh index file'
|
|
|
|
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 setup '
|
|
echo one >a &&
|
|
git add a &&
|
|
git commit -m initial
|
|
'
|
|
|
|
test_expect_success 'non-existent index file' '
|
|
rm -f new-index &&
|
|
GIT_INDEX_FILE=new-index git read-tree main
|
|
'
|
|
|
|
test_expect_success 'empty index file' '
|
|
rm -f new-index &&
|
|
> new-index &&
|
|
GIT_INDEX_FILE=new-index git read-tree main
|
|
'
|
|
|
|
test_done
|
|
|