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 +++ 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; }
--- 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');