# HG changeset patch # User Sergey Kandaurov # Date 1370017591 -14400 # Node ID 2da774b0fc7da2630ef7de9e513d5589a604ba48 # Parent 03d5be12bc3b46d09f8af4c9e7f665a787885d69 Tests: skip access.t on platforms without ipv6 support. diff --git a/access.t b/access.t --- a/access.t +++ b/access.t @@ -26,9 +26,8 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http proxy access ipv6/); plan(skip_all => 'new syntax "unix:"') unless $t->has_version('1.5.1'); -plan(skip_all => 'win32') if $^O eq 'MSWin32'; -$t->plan(12)->write_file_expand('nginx.conf', <<'EOF'); +$t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -83,7 +82,14 @@ http { EOF -$t->run(); +eval { + open OLDERR, ">&", \*STDERR; close STDERR; + $t->run(); + open STDERR, ">&", \*OLDERR; +}; +plan(skip_all => 'no inet6 and/or unix support') if $@; + +$t->plan(12); ###############################################################################