X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e920830ec58994a4a0dff6a699e85ff303962904..2e42adb302df8607cecae334170ad379286a40a6:/testsuite/hardlinks.test diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index 31005e7b..d5e4db93 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -31,7 +31,13 @@ ln "$name1" "$name2" || fail "Can't create hardlink" ln "$name2" "$name3" || fail "Can't create hardlink" cp "$name2" "$name4" || fail "Can't copy file" -checkit "$RSYNC -aHvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +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 broken twice so far, so we need this test). +$RSYNC -aHivv "$name1" "$todir/" +diff $diffopt "$name1" "$todir" || test_fail "solo copy of name1 failed" # The script would have aborted on error, so getting here means we've won. exit 0