]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix so Travis doesn't fail on CVE tests without --zlib-compat. 87/head
authorMika Lindqvist <postmaster@raasu.org>
Mon, 13 Feb 2017 17:26:09 +0000 (19:26 +0200)
committerMika Lindqvist <postmaster@raasu.org>
Mon, 13 Feb 2017 17:28:32 +0000 (19:28 +0200)
.travis.yml
test/testCVEinputs.sh

index 6080169cf6806a0e49f4a92579648f36f160c767..e358fe1e193d960c56f3e4301de598476e069740 100644 (file)
@@ -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"
index 046856e788471224b309474a3f615f431d9c3893..de197d52fcccef8949a8468115f11d2d92ba3292 100755 (executable)
@@ -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