Mercurial > hg > nginx-tests
changeset 873:c03af44a7370
Tests: avoid fcntl(O_DIRECT) alerts in http_disable_symlinks.t.
Ubuntu uses to distribute /etc/resolv.conf as a symlink to file that
resides in an unsupported filesystem. The fix is to skip symlinks.
While here, omit passing explicitly a default argument for style.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 22 Mar 2016 13:43:55 +0300 |
parents | a07734ecb988 |
children | 66b8e350b9c8 |
files | http_disable_symlinks.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/http_disable_symlinks.t Fri Mar 18 12:42:41 2016 +0300 +++ b/http_disable_symlinks.t Tue Mar 22 13:43:55 2016 +0300 @@ -155,7 +155,7 @@ EOF my $uid = getuid(); -my ($extfile) = grep { -f "$_" && $uid != (stat($_))[4] } +my ($extfile) = grep { -f && !-l && $uid != (stat())[4] } ('/etc/resolv.conf', '/etc/protocols', '/etc/host.conf'); plan(skip_all => 'no external file found')