Changed dup-detection code to keep the first item in the user's args.
[rsync/rsync.git] / testsuite / delete.test
index d57395c..208ff45 100644 (file)
@@ -11,9 +11,7 @@
 
 hands_setup
 
-makepath "$chkdir"
-makepath "$todir/extradir"
-makepath "$todir/emptydir/subdir"
+makepath "$chkdir" "$todir/extradir" "$todir/emptydir/subdir"
 
 echo extra >"$todir"/remove1
 echo extra >"$todir"/remove2
@@ -40,9 +38,9 @@ touch "$todir/foo" "$todir/bar" "$todir/baz"
 
 $RSYNC -r --exclude=baz --filter=': filters' --delete-excluded "$fromdir/" "$todir/"
 
-test -f "$todir/foo" || test_fail "rsync deleted $todir/foo"
-test -f "$todir/bar" && test_fail "rsync did not delete $todir/bar"
-test -f "$todir/baz" && test_fail "rsync did not delete $todir/baz"
+test -f "$todir/foo" || test_fail "rsync should NOT have deleted $todir/foo"
+test -f "$todir/bar" && test_fail "rsync SHOULD have deleted $todir/bar"
+test -f "$todir/baz" && test_fail "rsync SHOULD have deleted $todir/baz"
 
 # The script would have aborted on error, so getting here means we've won.
 exit 0