From 7a6e294f7b59a3f8cd20ede0fd8bcbe0f7730c93 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 15 Apr 2005 08:28:02 +0000 Subject: [PATCH] Added a test that copies a single file with -H specified. --- testsuite/hardlinks.test | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index cac64d7d..f4db3a0d 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -32,6 +32,13 @@ 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" +checkit "$RSYNC -aHivv \"$name1\" \"$todir/\"" "$chkdir" "$todir" # The script would have aborted on error, so getting here means we've won. exit 0 -- 2.34.1