Mercurial > hg > nginx-tests
comparison lib/Test/Nginx.pm @ 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 | a6453cf5786a |
children | 93f749c1d5c5 |
comparison
equal
deleted
inserted
replaced
1220:0af58b78df35 | 1221:852856f8e7dc |
---|---|
259 | 259 |
260 sub has_daemon($) { | 260 sub has_daemon($) { |
261 my ($self, $daemon) = @_; | 261 my ($self, $daemon) = @_; |
262 | 262 |
263 if ($^O eq 'MSWin32') { | 263 if ($^O eq 'MSWin32') { |
264 Test::More::plan(skip_all => "win32"); | 264 `for %i in ($daemon.exe) do \@echo | set /p x=%~\$PATH:i` |
265 or Test::More::plan(skip_all => "$daemon not found"); | |
265 return $self; | 266 return $self; |
266 } | 267 } |
267 | 268 |
268 if ($^O eq 'solaris') { | 269 if ($^O eq 'solaris') { |
269 Test::More::plan(skip_all => "$daemon not found") | 270 Test::More::plan(skip_all => "$daemon not found") |