# 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 --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -176,6 +176,10 @@ sub has_feature($) { return $^O ne 'MSWin32' || $self->has_version('1.9.0'); } + if ($feature eq 'unix') { + return $^O ne 'MSWin32'; + } + return 0; } diff --git a/proxy_unix.t b/proxy_unix.t --- a/proxy_unix.t +++ b/proxy_unix.t @@ -26,7 +26,7 @@ select STDOUT; $| = 1; 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');