From f86c1c4195fbae61dc85290089b35be824dc0cf9 Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Mon, 13 Feb 2017 19:26:09 +0200 Subject: [PATCH] Fix so Travis doesn't fail on CVE tests without --zlib-compat. --- .travis.yml | 1 + test/testCVEinputs.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2