# HG changeset patch # User Sergey Kandaurov # Date 1458643435 -10800 # Node ID c03af44a7370be7fe302afdfe50d53bb0cef0949 # Parent a07734ecb988f90a88c384bc8b365e872e223b4c 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. diff --git a/http_disable_symlinks.t b/http_disable_symlinks.t --- a/http_disable_symlinks.t +++ b/http_disable_symlinks.t @@ -155,7 +155,7 @@ http { 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')