From: Wayne Davison Date: Fri, 10 Nov 2006 07:49:02 +0000 (+0000) Subject: Fixed the hard-linking of symlinks test (we need to use a symlink X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3aeedbfd116d66b7d11d4d7df75ed948b9c9f88b Fixed the hard-linking of symlinks test (we need to use a symlink to a non-existent file for the test to work right). --- diff --git a/testsuite/itemize.test b/testsuite/itemize.test index fb1f3181..ddb8c688 100644 --- a/testsuite/itemize.test +++ b/testsuite/itemize.test @@ -27,8 +27,13 @@ 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" +ln -s no-such-dir "$to2dir" +if ln "$to2dir" "$to2dir.test" 2>/dev/null; then + L=hL +else + L=cL +fi +rm -f "$to2dir" "$to2dir.test" $RSYNC -iplr "$fromdir/" "$todir/" \ | tee "$outfile"