[dpkg] 140/187: test: Set SIGPIPE to a sane state

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit f074889198fa4099474b068a611ebd56bbfc20d8
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Oct 30 21:53:07 2016 +0100

    test: Set SIGPIPE to a sane state
    
    Some environments, such as Jenkins, set the SIGPIPE handler to ignore,
    which gets inherited by the test suite, and yes(1) barfs as it checks
    for error conditions after print. Reset the SIGPIPE handler to a sane
    default state.
---
 t-func/atlocal.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/t-func/atlocal.in b/t-func/atlocal.in
index 9b8a441..e372093 100644
--- a/t-func/atlocal.in
+++ b/t-func/atlocal.in
@@ -19,6 +19,9 @@ unset BZIP
 unset XZ_OPT
 unset XZ_DEFAULTS
 
+# Restore SIGPIPE to a sane default state.
+trap - PIPE
+
 if [ "$(id -u)" = 0 ]; then
   ASROOT=
 elif which fakeroot >/dev/null; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list