# HG changeset patch # User Sergey Kandaurov # Date 1461691129 -10800 # Node ID 6af0421615ea862c1e78dc25f445b59c99da5146 # Parent f2b2633a3fc1e1f76b8a8fc44fe7b97c3d25aefb Tests: require superuser for proxy_bind transparent tests. diff --git a/proxy_bind_transparent.t b/proxy_bind_transparent.t --- a/proxy_bind_transparent.t +++ b/proxy_bind_transparent.t @@ -23,6 +23,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; plan(skip_all => 'win32') if $^O eq 'MSWin32'; +plan(skip_all => 'must be root') if $> != 0; plan(skip_all => '127.0.0.2 local address required') unless defined IO::Socket::INET->new( LocalAddr => '127.0.0.2' ); @@ -32,6 +33,7 @@ my $t = Test::Nginx->new()->has(qw/http %%TEST_GLOBALS%% daemon off; +user root wheel; events { }