about summary refs log tree commit
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-10 09:14:19 +0000
committerEric Wong <e@yhbt.net>2020-01-11 06:32:08 +0000
commit9f5a583694396f84056b9d92255bba0197b52bc8 (patch)
treeefece7a24babf0bfa9ad0f31abab5a119ce384ff /t
parent6d576feb27625abc36675b7b466265d4f06b2f26 (diff)
downloadpublic-inbox-9f5a583694396f84056b9d92255bba0197b52bc8.tar.gz
Most spawn and popen_rd callers die on failure to spawn,
anyways, and some are missing checks entirely.  This saves
us a bunch of verbose error-checking code in callers.

This also makes popen_rd more consistent, since it already
dies on pipe creation failures.
Diffstat (limited to 't')
-rw-r--r--t/check-www-inbox.perl1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/check-www-inbox.perl b/t/check-www-inbox.perl
index db292c50..40209957 100644
--- a/t/check-www-inbox.perl
+++ b/t/check-www-inbox.perl
@@ -48,7 +48,6 @@ my $atom_check = eval {
                         2 => fileno($err_fh),
                 };
                 my $pid = spawn($cmd, undef, $rdr);
-                defined $pid or die "spawn failure: $!";
                 while (waitpid($pid, 0) != $pid) {
                         next if $!{EINTR};
                         warn "waitpid(xmlstarlet, $pid) $!";