X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fzdiff;h=a06fd83229c993c7c22d50ccc9557d21bc15592e;hb=baf8c7dd1f7954fc9b8b19469f5c3ea5d27d6c85;hp=da753c69bea2c93cb13a5bae728f7a514f31ffea;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip
diff --git a/tests/zdiff b/tests/zdiff
index da753c6..a06fd83 100755
--- a/tests/zdiff
+++ b/tests/zdiff
@@ -2,7 +2,7 @@
# Exercise zdiff with two compressed inputs.
# Before gzip-1.4, this would fail.
-# Copyright (C) 2009-2010 Free Software Foundation, Inc.
+# Copyright (C) 2009-2013 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
@@ -18,17 +18,11 @@
# along with this program. If not, see .
# limit so don't run it by default.
-if test "$VERBOSE" = yes; then
- set -x
- zdiff --version
-fi
+. "${srcdir=.}/init.sh"; path_prepend_ ..
-: ${srcdir=.}
-. "$srcdir/tests/init.sh"; path_prepend_ .
-
-echo a > a || framework_failure
-echo b > b || framework_failure
-gzip a b || framework_failure
+echo a > a || framework_failure_
+echo b > b || framework_failure_
+gzip a b || framework_failure_
cat < exp
1c1
@@ -41,7 +35,7 @@ fail=0
zdiff a.gz b.gz > out 2>&1
test $? = 1 || fail=1
-compare out exp || fail=1
+compare exp out || fail=1
rm -f out
# expect success, for equal files