From: Wayne Davison Date: Fri, 10 Nov 2006 06:27:35 +0000 (+0000) Subject: If the OS can't hard-link a symlink, tweak the expected output X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3b8ed84245622d9dc04f4d09d8fa7619bd5829b3 If the OS can't hard-link a symlink, tweak the expected output when using --link-dest. --- diff --git a/testsuite/itemize.test b/testsuite/itemize.test index 9620a020..06b73fa8 100644 --- a/testsuite/itemize.test +++ b/testsuite/itemize.test @@ -26,6 +26,10 @@ ln -s ../bar/baz/rsync "$fromdir/foo/sym" umask 022 ln "$fromdir/foo/config1" "$fromdir/foo/extra" +# Check if the OS can hard-link symlinks or not +ln "$fromdir/foo/sym" "$fromdir/foo/sym.test" && L=hL || L=cL +rm -f "$fromdir/foo/sym.test" + $RSYNC -iplr "$fromdir/" "$todir/" \ | tee "$outfile" cat <"$chkfile" @@ -186,7 +190,7 @@ cd foo/ hf foo/config1 hf foo/config2 hf foo/extra => foo/config1 -hL foo/sym -> ../bar/baz/rsync +$L foo/sym -> ../bar/baz/rsync EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 11 failed"