# HG changeset patch # User Maxim Dounin # Date 1338662009 -14400 # Node ID f6f60780f758f30d3cae29c31ba9f8cc78e9e609 # Parent ce2e23daa1da85c0db35b13e60f806fc7b0095e9 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 --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -119,6 +119,11 @@ sub has_module($) { 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`;