t3903: fix broken test_must_fail calls
[gitweb.git] / t / t4004-diff-rename-symlink.sh
index 3d25be7a6709cdd23e0d583a8f1a3e19a3927cd8..1a09e8db403adc9c65859b0a369ce9d06e00e6f4 100755 (executable)
@@ -10,7 +10,13 @@ copy of symbolic links, but should not produce rename/copy followed
 by an edit for them.
 '
 . ./test-lib.sh
-. ../diff-lib.sh
+. "$TEST_DIRECTORY"/diff-lib.sh
+
+if ! test_have_prereq SYMLINKS
+then
+       skip_all='Symbolic links not supported, skipping tests.'
+       test_done
+fi
 
 test_expect_success \
     'prepare reference tree' \