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;