X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2cfe44eee452a2007c17a1864d7d8f9e8257289e..c09ebb8c04b7fdd0726dc5cd3564aa58dafe4cba:/testsuite/hardlinks.test diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index cac64d7d..e44fd458 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -32,6 +32,14 @@ ln "$name2" "$name3" || fail "Can't create hardlink" cp "$name2" "$name4" || fail "Can't copy file" checkit "$RSYNC -aHivv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +rm -rf "$todir" + +# Make sure there's nothing wrong with sending a single file with -H +# enabled (this has had a problem twice now, so we need this). +mkdir "$chkdir" +cp -p "$name1" "$chkdir" +$RSYNC -avvi -f '-! */' "$fromdir/" "$chkdir/" +checkit "$RSYNC -aHivv \"$name1\" \"$todir/\"" "$chkdir" "$todir" # The script would have aborted on error, so getting here means we've won. exit 0