Code

Merge branch 'maint'
[git.git] / t / t7607-merge-overwrite.sh
index 5f731a1177267e76f19dbe1605a4d0f2e8e749bd..c86e298d082316ff5a4de6f07c0faba85c65d4e1 100755 (executable)
@@ -122,7 +122,7 @@ test_expect_success 'will not overwrite untracked file in leading path' '
        rm -f sub sub2
 '
 
-test_expect_failure SYMLINKS 'will not overwrite untracked symlink in leading path' '
+test_expect_success SYMLINKS 'will not overwrite untracked symlink in leading path' '
        git reset --hard c0 &&
        rm -rf sub &&
        mkdir sub2 &&
@@ -150,6 +150,7 @@ test_expect_success 'will not overwrite untracked file on unborn branch' '
        git rm -fr . &&
        git checkout --orphan new &&
        cp important c0.c &&
+       test_when_finished "rm c0.c" &&
        test_must_fail git merge c0 2>out &&
        test_cmp out expect &&
        test_path_is_missing .git/MERGE_HEAD &&
@@ -164,7 +165,7 @@ test_expect_success 'set up unborn branch and content' '
        echo bar > untracked-file
 '
 
-test_expect_failure 'will not clobber WT/index when merging into unborn' '
+test_expect_success 'will not clobber WT/index when merging into unborn' '
        git merge master &&
        grep foo tracked-file &&
        git show :tracked-file >expect &&