about summary refs log tree commit diff
path: root/Test/C02cond.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/C02cond.ztst')
-rw-r--r--Test/C02cond.ztst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 2564ad125..aabbbf23a 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -27,7 +27,8 @@
 0:-a cond
 
   # Find a block special file system.  This is a little tricky.
-  if block=$(find /dev(|ices)/ -type b -print); then
+  block=$(find /dev(|ices)/ -type b -print 2> /dev/null)
+  if [[ -n $block ]]; then
     [[ -b $block[(f)1] && ! -b zerolength ]]
   else
     print -u8 'Warning: Not testing [[ -b blockdevice ]] (no devices found)'