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
+++ 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 {
 }