Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call setgroups(1, &gid) after setting the gid (rather than calling
[rsync/rsync.git]
/
testsuite
/
duplicates.test
diff --git
a/testsuite/duplicates.test
b/testsuite/duplicates.test
index
02f330f
..
a81fe68
100644
(file)
--- a/
testsuite/duplicates.test
+++ b/
testsuite/duplicates.test
@@
-36,19
+36,18
@@
ln -s "$name1" "$name2" || fail "can't create symlink"
outfile="$scratchdir/rsync.out"
outfile="$scratchdir/rsync.out"
-checkit "
rsync
-avv \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \
+checkit "
$RSYNC
-avv \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \
| tee "$outfile"
# Make sure each file was only copied once...
if [ `grep -c '^name1$' "$outfile"` != 1 ]
then
| tee "$outfile"
# Make sure each file was only copied once...
if [ `grep -c '^name1$' "$outfile"` != 1 ]
then
- test_
x
fail "name1 was not copied exactly once"
+ test_fail "name1 was not copied exactly once"
fi
fi
-if [ `grep -c '^name2
$
' "$outfile"` != 1 ]
+if [ `grep -c '^name2
->
' "$outfile"` != 1 ]
then
then
- test_
x
fail "name2 was not copied exactly once"
+ test_fail "name2 was not copied exactly once"
fi
exit 0
# last [] may have failed but if we get here then we've won
fi
exit 0
# last [] may have failed but if we get here then we've won
-