summaryrefslogtreecommitdiff
path: root/testsuite/bzcat.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/bzcat.tests')
-rwxr-xr-xtestsuite/bzcat.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/bzcat.tests b/testsuite/bzcat.tests
index 78d74f2..5b4f3f4 100755
--- a/testsuite/bzcat.tests
+++ b/testsuite/bzcat.tests
@@ -1,5 +1,7 @@
#!/bin/sh
+FAILCOUNT=0
+
ext=bz2
bb="busybox "
@@ -35,6 +37,7 @@ check() {
echo "PASS: $1"
else
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))