changeset 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 8d2c6358d830
files lib/Test/Nginx.pm
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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`;