Skip to content

Commit

Permalink
Change "fail" to "test_fail".
Browse files Browse the repository at this point in the history
Fixes bug 11322.
  • Loading branch information
Wayne Davison committed Jun 10, 2015
1 parent 81ff413 commit 6feb7d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions testsuite/chgrp.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

# Build some hardlinks

mygrps="`rsync_getgroups`" || fail "Can't get groups"
mygrps="`rsync_getgroups`" || test_fail "Can't get groups"
mkdir "$fromdir"

for g in $mygrps
do
name="$fromdir/foo-$g"
date > "$name"
chgrp "$g" "$name" || fail "Can't chgrp"
chgrp "$g" "$name" || test_fail "Can't chgrp"
done
sleep 2

Expand Down
2 changes: 1 addition & 1 deletion testsuite/duplicates.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mkdir "$fromdir"
name1="$fromdir/name1"
name2="$fromdir/name2"
echo "This is the file" > "$name1"
ln -s "$name1" "$name2" || fail "can't create symlink"
ln -s "$name1" "$name2" || test_fail "can't create symlink"

outfile="$scratchdir/rsync.out"

Expand Down
6 changes: 3 additions & 3 deletions testsuite/hardlinks.test
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ name3="$fromdir/name3"
name4="$fromdir/name4"
echo "This is the file" > "$name1"
ln "$name1" "$name2" || test_skipped "Can't create hardlink"
ln "$name2" "$name3" || fail "Can't create hardlink"
cp "$name2" "$name4" || fail "Can't copy file"
ln "$name2" "$name3" || test_fail "Can't create hardlink"
cp "$name2" "$name4" || test_fail "Can't copy file"
cat $srcdir/*.c >"$fromdir/text"

checkit "$RSYNC -aHivv --debug=HLINK5 '$fromdir/' '$todir/'" "$fromdir" "$todir"
Expand Down Expand Up @@ -67,7 +67,7 @@ checkit "$RSYNC -aHivv --debug=HLINK5 --copy-dest='$todir' '$fromdir/' '$chkdir/

# Create a hard link that has only one part in the hierarchy.
echo "This is another file" >"$fromdir/solo"
ln "$fromdir/solo" "$chkdir/solo" || fail "Can't create hardlink"
ln "$fromdir/solo" "$chkdir/solo" || test_fail "Can't create hardlink"

# Make sure that the checksum data doesn't slide due to an HLINK_BUMP() change.
$RSYNC -aHivc --debug=HLINK5 "$fromdir/" "$chkdir/" | tee "$outfile"
Expand Down

0 comments on commit 6feb7d3

Please sign in to comment.