diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:37:53 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:37:53 +0000 |
commit | 77a9a9d380625670cd181c996aeb81343111a29d (patch) | |
tree | 566501beb43d4e2ed83350d70dfe8b9e5e886cb9 /testsuite | |
parent | Adding upstream version 1.3~pre1. (diff) | |
download | zutils-77a9a9d380625670cd181c996aeb81343111a29d.tar.xz zutils-77a9a9d380625670cd181c996aeb81343111a29d.zip |
Adding upstream version 1.3~pre2.upstream/1.3_pre2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-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 |