aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bunzip2.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/bunzip2.tests')
-rwxr-xr-xtestsuite/bunzip2.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/bunzip2.tests b/testsuite/bunzip2.tests
index 734acbb75..827aee867 100755
--- a/testsuite/bunzip2.tests
+++ b/testsuite/bunzip2.tests
@@ -1,6 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2# Used by both gunzip and bunzip2 tests 2# Used by both gunzip and bunzip2 tests
3 3
4FAILCOUNT=0
5
4if test "${0##*/}" = "gunzip.tests"; then 6if test "${0##*/}" = "gunzip.tests"; then
5 unpack=gunzip 7 unpack=gunzip
6 ext=gz 8 ext=gz
@@ -473,6 +475,7 @@ check() {
473 echo "PASS: $1" 475 echo "PASS: $1"
474 else 476 else
475 echo "FAIL: $1" 477 echo "FAIL: $1"
478 FAILCOUNT=$((FAILCOUNT + 1))
476 fi 479 fi
477} 480}
478 481
@@ -520,5 +523,8 @@ if test "${0##*/}" = "bunzip2.tests"; then
520 echo "PASS: $unpack: test bz2 file" 523 echo "PASS: $unpack: test bz2 file"
521 else 524 else
522 echo "FAIL: $unpack: test bz2 file" 525 echo "FAIL: $unpack: test bz2 file"
526 FAILCOUNT=$((FAILCOUNT + 1))
523 fi 527 fi
524fi 528fi
529
530exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255))