Mercurial > hg > nginx-tests
changeset 1221:852856f8e7dc
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
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 20 Sep 2017 14:52:12 +0300 |
parents | 0af58b78df35 |
children | 75a83f36cff0 |
files | lib/Test/Nginx.pm |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/Test/Nginx.pm Wed Sep 20 14:46:51 2017 +0300 +++ b/lib/Test/Nginx.pm Wed Sep 20 14:52:12 2017 +0300 @@ -261,7 +261,8 @@ 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; }