Tests: replace "which" with "command -v". Under Solaris "which" is totally unusable (it prints garbage to stdout, and doesn't set return code). POSIX's "command -v" seems to work ok on all supported systems.
diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm index 05faeba..50d9c26 100644 --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm
@@ -119,7 +119,7 @@ my ($self, $daemon) = @_; Test::More::plan(skip_all => "$daemon not found") - unless `which $daemon`; + unless `command -v $daemon`; return $self; }