# HG changeset patch # User Sergey Kandaurov # Date 1505908332 -10800 # Node ID 852856f8e7dc7372817acc6650be2f2a10319dc9 # Parent 0af58b78df351974e92b15258df6cb3626e302af Tests: added has_daemon() support for win32. See for details: https://technet.microsoft.com/en-us/library/bb490909.aspx https://technet.microsoft.com/en-us/library/bb490998.aspx diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -261,7 +261,8 @@ sub has_daemon($) { my ($self, $daemon) = @_; if ($^O eq 'MSWin32') { - Test::More::plan(skip_all => "win32"); + `for %i in ($daemon.exe) do \@echo | set /p x=%~\$PATH:i` + or Test::More::plan(skip_all => "$daemon not found"); return $self; }