3 test_description
='merge-recursive backend test'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 # A <- create some files
10 # B C <- cause rename/delete conflicts between B and C
19 # F G <- merge E into B, D into C
23 # H <- recursive merge crashes
27 test_expect_success
'setup repo with criss-cross history' '
30 # create a bunch of files
44 # a file in one branch
45 git checkout -b B A &&
50 # with a branch off of it
53 # put some commits on D
55 echo testD > data/testD &&
59 # back up to the top, create another branch and cause
60 # a rename conflict with the file we deleted earlier
61 git checkout -b C A &&
62 git mv data/9 data/new-9 &&
66 # with a branch off of it
71 echo testE > data/testE &&
77 test_must_fail git merge E &&
85 test_must_fail git merge D &&
92 test_expect_success
'recursive merge between F and G does not cause segfault' '