]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6418: tighten delete/normalize conflict testcase
authorElijah Newren <newren@gmail.com>
Mon, 10 Aug 2020 22:29:10 +0000 (22:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2020 22:59:00 +0000 (15:59 -0700)
The testcase only required that the merge complete without conflict,
without specifying what the correct resolution was.  Since normalization
changed this from a modify/delete to a not-modified/delete, the correct
resolution is to have the file be removed at the end.  Add a check for
this resolution.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6418-merge-text-auto.sh

index 89c86d4e56ca6e5133e50dfbc92f069c55b2fb0e..30983d18b1bad5ff25f38317839493ac65bf71f5 100755 (executable)
@@ -197,7 +197,8 @@ test_expect_success 'Test delete/normalize conflict' '
        git commit -m "remove file" &&
        git checkout master &&
        git reset --hard a^ &&
-       git merge side
+       git merge side &&
+       test_path_is_missing file
 '
 
 test_done