user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 1/4] t/xap_helper: make sendmsg errors more obvious
  2023-12-01  2:07  5% [PATCH 0/4] DragonFly-related fixes Eric Wong
@ 2023-12-01  2:07  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-12-01  2:07 UTC (permalink / raw)
  To: meta

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.
---
 t/xap_helper.t | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/xap_helper.t b/t/xap_helper.t
index 37679ae9..ec78998c 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) = @_;

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/4] DragonFly-related fixes
@ 2023-12-01  2:07  5% Eric Wong
  2023-12-01  2:07  7% ` [PATCH 1/4] t/xap_helper: make sendmsg errors more obvious Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-12-01  2:07 UTC (permalink / raw)
  To: meta

2/4 probably affects NetBSD and OpenBSD, too, but tests don't
always fail...

Eric Wong (4):
  t/xap_helper: make sendmsg errors more obvious
  xap_helper.h: fix non-assignable stderr case
  tests: note kevent+tmpfs failures on DragonFly <= 6.4
  xap_helper: enable stderr assignment on DragonFly

 lib/PublicInbox/TestCommon.pm | 23 ++++++++++++++++++++++-
 lib/PublicInbox/xap_helper.h  |  4 ++--
 t/dir_idle.t                  |  7 +++++--
 t/kqnotify.t                  |  2 +-
 t/xap_helper.t                |  1 +
 5 files changed, 31 insertions(+), 6 deletions(-)

^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-12-01  2:07  5% [PATCH 0/4] DragonFly-related fixes Eric Wong
2023-12-01  2:07  7% ` [PATCH 1/4] t/xap_helper: make sendmsg errors more obvious Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).