Tests: fail has_daemon() on win32. The "command -v" hangs under windows as it has nothing to do with POSIX command. Just return failure unconditionally.
diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm index c00575d..42f2733 100644 --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm
@@ -119,6 +119,11 @@ sub has_daemon($) { my ($self, $daemon) = @_; + if ($^O eq 'MSWin32') { + Test::More::plan(skip_all => "win32"); + return $self; + } + Test::More::plan(skip_all => "$daemon not found") unless `command -v $daemon`;