projects
/
debian
/
gzip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b477de7
)
* tests/zgrep-signal: Test for Fedora 15 signal bug.
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 2 Nov 2011 20:38:12 +0000
(13:38 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 2 Nov 2011 20:39:21 +0000
(13:39 -0700)
Also, don't assume that SIGPIPE is SIG_DFL on entry.
tests/zgrep-signal
patch
|
blob
|
history
diff --git
a/tests/zgrep-signal
b/tests/zgrep-signal
index fc09a9e4845ec8843317d9ed19745f3533125aa5..3c5b6966d18848bc2d728f8d936b76a103d4262b 100644
(file)
--- a/
tests/zgrep-signal
+++ b/
tests/zgrep-signal
@@
-22,6
+22,14
@@
echo a | gzip -c > f.gz || framework_failure_
+if (trap - PIPE) >/dev/null 2>&1; then
+ trap - PIPE
+else
+ trap 13
+fi
+st=$(exec 3>&1; (cat f.gz f.gz; echo $? >&3) | :)
+test "$st" = 141 || framework_failure_ 'signal handling busted on this host'
+
fail=0
st=$(exec 3>&1; (zgrep a f.gz f.gz; echo $? >&3) | :) || framework_failure_