syslogd: work around rename() not renaming hardlinks to themselves
[oweals/busybox.git] / testsuite / bzcat.tests
index 0bc7442449c9bd0c8bb35fc5d8e2ee8dabf32fab..5b4f3f4b317c2644f658c94823e2ccb89e3cd4e6 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+FAILCOUNT=0
+
 ext=bz2
 
 bb="busybox "
@@ -32,9 +34,10 @@ prep() {
 check() {
     eval $2 >t_actual 2>&1
     if $ECHO -ne "$expected" | cmp - t_actual; then
-       echo "$1: PASS"
+       echo "PASS: $1"
     else
-       echo "$1: FAIL"
+       echo "FAIL: $1"
+       FAILCOUNT=$((FAILCOUNT + 1))
     fi
 }
 
@@ -47,3 +50,5 @@ prep; check "bzcat: dont delete src" "${bb}bzcat t2.bz2; test -f t2.bz2 && echo
 
 )
 rm -rf testdir
+
+exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255))