diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:37:59 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:37:59 +0000 |
commit | 5a8338a2537d1aca007fee7d5c1927b3a83c2da3 (patch) | |
tree | 36348dba6840228936b5152149ea57802a0bc81b /testsuite | |
parent | Adding debian version 1.3~pre1-1. (diff) | |
download | zutils-5a8338a2537d1aca007fee7d5c1927b3a83c2da3.tar.xz zutils-5a8338a2537d1aca007fee7d5c1927b3a83c2da3.zip |
Merging upstream version 1.3~pre2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/check.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 2dc013f..1cf52a2 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -168,7 +168,8 @@ printf . "${ZCMP}" -N -q --format=lz in.lz if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi "${ZCMP}" -N --format=lz in.gz in.lz 2> /dev/null -if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi +res=$? +if [ ${res} = 1 ] || [ ${res} = 2 ] ; then printf . ; else printf - ; fail=1 ; fi "${ZCMP}" -N -n -1 in in 2> /dev/null if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi "${ZCMP}" -N --bad-option in in 2> /dev/null @@ -233,7 +234,8 @@ printf . "${ZDIFF}" -N -q --format=bz2 in.bz2 2> /dev/null if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi "${ZDIFF}" -N -q --format=,lz in.lz in.bz2 > /dev/null 2>&1 -if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi +res=$? +if [ ${res} = 1 ] || [ ${res} = 2 ] ; then printf . ; else printf - ; fail=1 ; fi "${ZDIFF}" -N --bad-option 2> /dev/null if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi |