sha1_name: add get_sha1_with_context()
[gitweb.git] / t / t4011-diff-symlink.sh
index 3a8130996739766f8168fe2908814987395d53a2..e12fbea1b5df970f22a1526c4d9ba8fc32a027ba 100755 (executable)
@@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
 then
        say 'Symbolic links not supported, skipping tests.'
        test_done
-       exit
 fi
 
 cat > expected << EOF
@@ -55,7 +54,7 @@ EOF
 
 test_expect_success \
     'diff removed symlink' \
-    'rm frotz &&
+    'mv frotz frotz2 &&
     git diff-index -M -p $tree > current &&
     compare_diff_patch current expected'
 
@@ -65,8 +64,7 @@ EOF
 
 test_expect_success \
     'diff identical, but newly created symlink' \
-    'sleep 3 &&
-    ln -s xyzzy frotz &&
+    'ln -s xyzzy frotz &&
     git diff-index -M -p $tree > current &&
     compare_diff_patch current expected'