Mercurial > hg > nginx-tests
comparison http_disable_symlinks.t @ 1223:56e7da831f46
Tests: http_disable_symlinks.t fails on NetBSD.
See http://gnats.netbsd.org/43154 for details.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 29 Sep 2017 17:12:48 +0300 |
parents | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1222:75a83f36cff0 | 1223:56e7da831f46 |
---|---|
207 symlink($extfile, "$d/cached/link"); | 207 symlink($extfile, "$d/cached/link"); |
208 | 208 |
209 ############################################################################### | 209 ############################################################################### |
210 | 210 |
211 SKIP: { | 211 SKIP: { |
212 skip 'cannot test under symlink', 25 if $d ne realpath($d); | 212 skip 'cannot test under symlink', 25 if $d ne realpath($d) or $^O eq 'netbsd'; |
213 | 213 |
214 like(http_get_host('s1', '/link'), qr!200 OK!, 'static (off, same uid)'); | 214 like(http_get_host('s1', '/link'), qr!200 OK!, 'static (off, same uid)'); |
215 like(http_get_host('s1', '/link2'), qr!200 OK!, 'static (off, other uid)'); | 215 like(http_get_host('s1', '/link2'), qr!200 OK!, 'static (off, other uid)'); |
216 | 216 |
217 like(http_get_host('s1', '/on/link'), qr!403 Forbidden!, | 217 like(http_get_host('s1', '/on/link'), qr!403 Forbidden!, |