comparison lib/Test/Nginx.pm @ 220:f6f60780f758

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 02 Jun 2012 22:33:29 +0400
parents ce2e23daa1da
children 5b7883daaf82
comparison
equal deleted inserted replaced
219:ce2e23daa1da 220:f6f60780f758
117 } 117 }
118 118
119 sub has_daemon($) { 119 sub has_daemon($) {
120 my ($self, $daemon) = @_; 120 my ($self, $daemon) = @_;
121 121
122 if ($^O eq 'MSWin32') {
123 Test::More::plan(skip_all => "win32");
124 return $self;
125 }
126
122 Test::More::plan(skip_all => "$daemon not found") 127 Test::More::plan(skip_all => "$daemon not found")
123 unless `command -v $daemon`; 128 unless `command -v $daemon`;
124 129
125 return $self; 130 return $self;
126 } 131 }