From 3b8ed84245622d9dc04f4d09d8fa7619bd5829b3 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 10 Nov 2006 06:27:35 +0000 Subject: [PATCH] If the OS can't hard-link a symlink, tweak the expected output when using --link-dest. --- testsuite/itemize.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- 2.34.1