Mercurial > hg > nginx-tests
changeset 917:6af0421615ea
Tests: require superuser for proxy_bind transparent tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 26 Apr 2016 20:18:49 +0300 |
parents | f2b2633a3fc1 |
children | 8d489e743fcb |
files | proxy_bind_transparent.t |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_bind_transparent.t Mon Apr 18 17:40:08 2016 +0300 +++ b/proxy_bind_transparent.t Tue Apr 26 20:18:49 2016 +0300 @@ -23,6 +23,7 @@ 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 @@ %%TEST_GLOBALS%% daemon off; +user root wheel; events { }