projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, missed another SIGPIPE
[debian/gzip]
/
tests
/
zdiff
diff --git
a/tests/zdiff
b/tests/zdiff
index cafe600598d9dab88d35580a76124d73d3ed70f0..0816bdd20fe1103335fa0dffca19444b0493654f 100755
(executable)
--- a/
tests/zdiff
+++ b/
tests/zdiff
@@
-2,7
+2,7
@@
# Exercise zdiff with two compressed inputs.
# Before gzip-1.4, this would fail.
# Exercise zdiff with two compressed inputs.
# Before gzip-1.4, this would fail.
-# Copyright (C) 2009 Free Software Foundation, Inc.
+# Copyright (C) 2009
-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
# 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,16
+18,11
@@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# limit so don't run it by default.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# limit so don't run it by default.
-if test "$VERBOSE" = yes; then
- set -x
- zdiff --version
-fi
+. "${srcdir=.}/init.sh"; path_prepend_ ..
-. $srcdir/tests/test-lib.sh
-
-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 <<EOF > exp
1c1
cat <<EOF > exp
1c1
@@
-40,7
+35,7
@@
fail=0
zdiff a.gz b.gz > out 2>&1
test $? = 1 || fail=1
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
rm -f out
# expect success, for equal files