Mercurial > hg > nginx-tests
changeset 800:51d3243a762f
Tests: skip tests with unix domain sockets on win32.
The unix domain sockets are not supported on this platform.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 09 Dec 2015 17:49:30 +0300 |
parents | bf87c406f81d |
children | d95c4b8e5517 |
files | lib/Test/Nginx.pm proxy_unix.t |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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');