X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3010-ls-files-killed-modified.sh;h=95671c205364a12bea02173b33d0d427d5c546fe;hb=c32056e0ef193002f80d75fd795e156ddf65c4ab;hp=e4f02a0968331f3a03a6eb1d1bbf2420152caa12;hpb=d291a9a6c8165efee95b3c1ceb814c39460ddbea;p=git.git diff --git a/t/t3010-ls-files-killed-modified.sh b/t/t3010-ls-files-killed-modified.sh index e4f02a096..95671c205 100755 --- a/t/t3010-ls-files-killed-modified.sh +++ b/t/t3010-ls-files-killed-modified.sh @@ -38,7 +38,12 @@ modified without reporting path9 and path10. . ./test-lib.sh date >path0 -ln -s xyzzy path1 +if test_have_prereq SYMLINKS +then + ln -s xyzzy path1 +else + date > path1 +fi mkdir path2 path3 date >path2/file2 date >path3/file3 @@ -52,8 +57,14 @@ test_expect_success \ rm -fr path? ;# leave path10 alone date >path2 -ln -s frotz path3 -ln -s nitfol path5 +if test_have_prereq SYMLINKS +then + ln -s frotz path3 + ln -s nitfol path5 +else + date > path3 + date > path5 +fi mkdir path0 path1 path6 date >path0/file0 date >path1/file1