From 981f1a36f547d91f05587f59b8e3d6ff3dfbfee2 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Fri, 9 Aug 2019 06:55:44 -0500 Subject: [PATCH] appears lsof on debian9 is bugged some exits 1 even if it worked --- Net-Connection-ncnetstat/t/run.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Net-Connection-ncnetstat/t/run.t b/Net-Connection-ncnetstat/t/run.t index f575d85..a02ce47 100644 --- a/Net-Connection-ncnetstat/t/run.t +++ b/Net-Connection-ncnetstat/t/run.t @@ -11,7 +11,13 @@ BEGIN { } my $output_raw=`lsof -i UDP -i TCP -n -l -P`; -if ( $? eq 0 ){ +if ( + ( $? eq 0 ) || + ( + ( $^O =~ /linux/ ) && + ( $? eq 256 ) + ) + ){ $extra_tests=2; my $worked=0; my $ncnetstat;