Commit 3b8ed842 authored by Wayne Davison's avatar Wayne Davison

If the OS can't hard-link a symlink, tweak the expected output

when using --link-dest.
parent 3a72cc29
......@@ -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 <<EOT >"$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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment