]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t6035-merge-dir-to-symlink.sh
Merge branch 'jk/maint-rmdir-fix' into maint-1.6.6
[git.git] / t / t6035-merge-dir-to-symlink.sh
index 18d5f9454bd827a22540d81103ba78c8016ebe7c..5b96fb0b37b8397342796fd3b9fec94c91063ba4 100755 (executable)
@@ -3,6 +3,12 @@
 test_description='merging when a directory was replaced with a symlink'
 . ./test-lib.sh
 
+if ! test_have_prereq SYMLINKS
+then
+       say 'Symbolic links not supported, skipping tests.'
+       test_done
+fi
+
 test_expect_success 'create a commit where dir a/b changed to symlink' '
        mkdir -p a/b/c a/b-2/c &&
        > a/b/c/d &&
@@ -17,7 +23,7 @@ test_expect_success 'create a commit where dir a/b changed to symlink' '
        git commit -m "dir to symlink"
 '
 
-test_expect_failure 'keep a/b-2/c/d across checkout' '
+test_expect_success 'keep a/b-2/c/d across checkout' '
        git checkout HEAD^0 &&
        git reset --hard master &&
        git rm --cached a/b &&
@@ -26,7 +32,7 @@ test_expect_failure 'keep a/b-2/c/d across checkout' '
         test -f a/b-2/c/d
 '
 
-test_expect_failure 'checkout should not have deleted a/b-2/c/d' '
+test_expect_success 'checkout should not have deleted a/b-2/c/d' '
        git checkout HEAD^0 &&
        git reset --hard master &&
         git checkout start^0 &&