X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Fhttpd-corner.t;h=af838628717d94ca2e70e750ca7cc3def718bda1;hb=6c89cf6208dd4f5251faeec18dc76ac123335fed;hp=c72bc9c6368cc2b3f6fb2f49045cb374ffe96a56;hpb=10319080e23ae676ca447f629ee9cdcbb7e6c285;p=public-inbox.git diff --git a/t/httpd-corner.t b/t/httpd-corner.t index c72bc9c6..af838628 100644 --- a/t/httpd-corner.t +++ b/t/httpd-corner.t @@ -526,6 +526,14 @@ SKIP: { defined(my $x = getsockopt($sock, SOL_SOCKET, $var)) or die; is($x, $accf_arg, 'SO_ACCEPTFILTER unchanged if previously set'); }; +SKIP: { + use PublicInbox::Spawn qw(which); + skip 'only testing lsof(8) output on Linux', 1 if $^O ne 'linux'; + skip 'no lsof in PATH', 1 unless which('lsof'); + my @lsof = `lsof -p $pid`; + is_deeply([grep(/\bdeleted\b/, @lsof)], [], 'no lingering deleted inputs'); + is_deeply([grep(/\bpipe\b/, @lsof)], [], 'no extra pipes with -W0'); +}; done_testing();