mirror of
https://github.com/git/git
synced 2024-10-30 14:03:28 +00:00
16d4bd4f14
Mark some tests that match "*diff*" 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
467 B
Bash
Executable file
21 lines
467 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='patience diff algorithm'
|
|
|
|
TEST_PASSES_SANITIZE_LEAK=true
|
|
. ./test-lib.sh
|
|
. "$TEST_DIRECTORY"/lib-diff-alternative.sh
|
|
|
|
test_expect_success '--ignore-space-at-eol with a single appended character' '
|
|
printf "a\nb\nc\n" >pre &&
|
|
printf "a\nbX\nc\n" >post &&
|
|
test_must_fail git diff --no-index \
|
|
--patience --ignore-space-at-eol pre post >diff &&
|
|
grep "^+.*X" diff
|
|
'
|
|
|
|
test_diff_frobnitz "patience"
|
|
|
|
test_diff_unique "patience"
|
|
|
|
test_done
|