From 4c6c853494b4936825741bb5e8885f1312639058 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Mar 2021 23:02:18 -0800 Subject: tests: show lsof output on deleted-file-check failures This may help track down some occasional test failures I'm seeing. --- t/httpd-corner.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/httpd-corner.t') diff --git a/t/httpd-corner.t b/t/httpd-corner.t index 794d8aeb..296e1dc1 100644 --- a/t/httpd-corner.t +++ b/t/httpd-corner.t @@ -610,7 +610,8 @@ SKIP: { my $null_in = ''; my $rdr = { 2 => \(my $null_err), 0 => \$null_in }; my @lsof = xqx([$lsof, '-p', $td->{pid}], undef, $rdr); - is_deeply([grep(/\bdeleted\b/, @lsof)], [], 'no lingering deleted inputs'); + my $d = [ grep(/\(deleted\)/, @lsof) ]; + is_deeply($d, [], 'no lingering deleted inputs') or diag explain($d); # filter out pipes inherited from the parent my @this = xqx([$lsof, '-p', $$], undef, $rdr); -- cgit v1.2.3-24-ge0c7