3 test_description
='apply a patch that is larger than the preimage'
6 TEST_PASSES_SANITIZE_LEAK
=true
32 test_expect_success setup
'
36 sed -e "s/1/11/" -e "s/999999/9/" -e "s/H/HH/" <G >F &&
38 sed -e "/^\$/d" <G >F &&
43 test_expect_success
'apply should fail gracefully' '
45 if git apply --index patch
47 echo Oops, should not have succeeded
51 echo "Status was $status" &&
52 if test -f .git/index.lock
54 echo Oops, should not have crashed