]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix test 5's failure message.
authorWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 15:41:02 +0000 (07:41 -0800)
committerWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 15:41:02 +0000 (07:41 -0800)
testsuite/devices.test

index 1e7b776257ed8c74d48af2c00cca393875956c5c..a6474dc7310937a39e916dfaff848c7804ea56e2 100644 (file)
@@ -116,8 +116,8 @@ cD$all_plus char2
 cD$all_plus char3
 cS$all_plus fifo
 EOT
-if test ! -r "$fromdir/block2.5"; then
-    sed -e '/block2\.5/d' <"$chkfile" >"$chkfile.new"
+if test ! -b "$fromdir/block2.5"; then
+    grep -v block2.5 <"$chkfile" >"$chkfile.new"
     mv "$chkfile.new" "$chkfile"
 fi
 diff $diffopt "$chkfile" "$outfile" || test_fail "test 4 failed"
@@ -143,7 +143,7 @@ hD$allspace char2
 hD$allspace char3
 hS$allspace fifo
 EOT
-    diff $diffopt "$chkfile" "$outfile" || test_fail "test 4 failed"
+    diff $diffopt "$chkfile" "$outfile" || test_fail "test 5 failed"
 fi
 
 # The script would have aborted on error, so getting here means we've won.