mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
fdc8f79f1f
Mark various existing tests in t00*.sh that invoke a "test-tool" with 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). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 lines
466 B
Bash
Executable file
21 lines
466 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='test sha1 collision detection'
|
|
|
|
TEST_PASSES_SANITIZE_LEAK=true
|
|
. ./test-lib.sh
|
|
TEST_DATA="$TEST_DIRECTORY/t0013"
|
|
|
|
if test -z "$DC_SHA1"
|
|
then
|
|
skip_all='skipping sha1 collision tests, DC_SHA1 not set'
|
|
test_done
|
|
fi
|
|
|
|
test_expect_success 'test-sha1 detects shattered pdf' '
|
|
test_must_fail test-tool sha1 <"$TEST_DATA/shattered-1.pdf" 2>err &&
|
|
test_i18ngrep collision err &&
|
|
grep 38762cf7f55934b34d179ae6a4c80cadccbb7f0a err
|
|
'
|
|
|
|
test_done
|