From: Eric Wong Date: Fri, 1 Dec 2023 02:07:02 +0000 (+0000) Subject: t/xap_helper: make sendmsg errors more obvious X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203cae29ecacae348ba18447582ed7fd948aef61;p=thirdparty%2Fpublic-inbox.git t/xap_helper: make sendmsg errors more obvious By ignoring SIGPIPE, we hit our own error path and emit an informative error message instead of dying abruptly and requiring somebody to run `echo $?' to see the child status from their shell. --- diff --git a/t/xap_helper.t b/t/xap_helper.t index 37679ae90..ec78998c7 100644 --- a/t/xap_helper.t +++ b/t/xap_helper.t @@ -59,6 +59,7 @@ my $doreq = sub { $x; }; +local $SIG{PIPE} = 'IGNORE'; my $env = { PERL5LIB => join(':', @INC) }; my $test = sub { my (@cmd) = @_;