Fix issue with devices-fake test.
authorWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 15:59:08 +0000 (07:59 -0800)
committerWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 15:59:08 +0000 (07:59 -0800)
testsuite/devices.test

index a6474dc7310937a39e916dfaff848c7804ea56e2..5981e0378bdd15c0a63360e5936a19a684ef723e 100644 (file)
@@ -116,7 +116,7 @@ cD$all_plus char2
 cD$all_plus char3
 cS$all_plus fifo
 EOT
-if test ! -b "$fromdir/block2.5"; then
+if test ! -r "$fromdir/block2.5"; then
     grep -v block2.5 <"$chkfile" >"$chkfile.new"
     mv "$chkfile.new" "$chkfile"
 fi
@@ -128,7 +128,7 @@ echo ""
 ( cd "$todir" && rsync_ls_lR . ) > "$tmpdir/ls-to"
 diff $diffopt "$tmpdir/ls-from" "$tmpdir/ls-to"
 
-if test -b "$fromdir/block2.5"; then
+if test -r "$fromdir/block2.5"; then
     set -x
     $RSYNC -aii --link-dest="$todir" "$fromdir/" "$chkdir/" \
        | tee "$outfile"