X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fhelin-segv;h=20dfed1761d97e6c36bff6d746eb206eb8e7c1f6;hb=4ee107046a0ffd91f6c60c787326a5e27b799f6d;hp=d6b14f6d167b55a496409407082934d62d53819b;hpb=dc0ab95dbae38577efebe2283fc9b76e92ef4233;p=debian%2Fgzip diff --git a/tests/helin-segv b/tests/helin-segv index d6b14f6..20dfed1 100755 --- a/tests/helin-segv +++ b/tests/helin-segv @@ -1,7 +1,7 @@ #!/bin/sh # Before gzip-1.4, gzip -d would segfault on some inputs. -# Copyright (C) 2010 Free Software Foundation, Inc. +# Copyright (C) 2010-2012 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,21 +17,15 @@ # along with this program. If not, see . # limit so don't run it by default. -if test "$VERBOSE" = yes; then - set -x - gzip --version -fi - -: ${srcdir=.} -. "$srcdir/tests/init.sh"; path_prepend_ . +. "${srcdir=.}/init.sh"; path_prepend_ .. # This test case was provided by Aki Helin. -printf '\037\235\220\0\0\0\304' > helin.gz || framework_failure -printf '\0\0' > exp || framework_failure +printf '\037\235\220\0\0\0\304' > helin.gz || framework_failure_ +printf '\0\0' > exp || framework_failure_ fail=0 gzip -dc helin.gz > out || fail=1 -compare out exp || fail=1 +compare exp out || fail=1 Exit $fail