From: Mika Lindqvist Date: Mon, 13 Feb 2017 17:26:09 +0000 (+0200) Subject: Fix so Travis doesn't fail on CVE tests without --zlib-compat. X-Git-Tag: 1.9.9-b1~693^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F87%2Fhead;p=thirdparty%2Fzlib-ng.git Fix so Travis doesn't fail on CVE tests without --zlib-compat. --- diff --git a/.travis.yml b/.travis.yml index 6080169c..e358fe1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ compiler: - gcc - clang env: + - BUILDDIR=. TOOL="./configure" - BUILDDIR=. TOOL="./configure --zlib-compat" - BUILDDIR=../build TOOL="../zlib-ng/configure --zlib-compat" - BUILDDIR=. TOOL="./configure --zlib-compat --without-optimizations --without-new-strategies" diff --git a/test/testCVEinputs.sh b/test/testCVEinputs.sh index 046856e7..de197d52 100755 --- a/test/testCVEinputs.sh +++ b/test/testCVEinputs.sh @@ -9,7 +9,7 @@ for CVE in $CVEs; do ../minigzip -d < "$testcase" # we expect that a 1 error code is OK # for a vulnerable failure we'd expect 134 or similar - if [ $? -ne 1 ]; then + if [ $? -ne 1 ] && [ $? -ne 0 ]; then fail=1 fi done