less: small shrink
[oweals/busybox.git] / testsuite / testing.sh
index 01fdfbeca65fd231e14431e8c2c1289f9872c71f..94e90d77e5c1eb45f0e4d2c3e54260d763087d10 100755 (executable)
@@ -58,7 +58,7 @@ testing()
 
   if [ $# -ne 5 ]
   then
-    echo "Test $NAME has the wrong number of arguments ($# $*)" >&2
+    echo "Test $NAME has wrong number of arguments (must be 5) ($# $*)" >&2
     exit
   fi
 
@@ -76,7 +76,7 @@ testing()
   echo -ne "$5" | eval "$2" > actual
   RETVAL=$?
 
-  cmp expected actual > /dev/null
+  cmp expected actual >/dev/null 2>/dev/null
   if [ $? -ne 0 ]
   then
     FAILCOUNT=$[$FAILCOUNT+1]