# HG changeset patch # User Sergey Kandaurov # Date 1449672570 -10800 # Node ID 51d3243a762f3f2c7aa2946e854ffb13a1b8dd0f # Parent bf87c406f81d518e2ae822c3778dd6ac4452863a Tests: skip tests with unix domain sockets on win32. The unix domain sockets are not supported on this platform. diff -r bf87c406f81d -r 51d3243a762f lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm Wed Dec 09 16:38:28 2015 +0300 +++ b/lib/Test/Nginx.pm Wed Dec 09 17:49:30 2015 +0300 @@ -176,6 +176,10 @@ return $^O ne 'MSWin32' || $self->has_version('1.9.0'); } + if ($feature eq 'unix') { + return $^O ne 'MSWin32'; + } + return 0; } diff -r bf87c406f81d -r 51d3243a762f proxy_unix.t --- a/proxy_unix.t Wed Dec 09 16:38:28 2015 +0300 +++ b/proxy_unix.t Wed Dec 09 17:49:30 2015 +0300 @@ -26,7 +26,7 @@ eval { require IO::Socket::UNIX; }; plan(skip_all => 'IO::Socket::UNIX not installed') if $@; -my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(4); +my $t = Test::Nginx->new()->has(qw/http proxy unix/)->plan(4); $t->write_file_expand('nginx.conf', <<'EOF');