Mercurial > hg > nginx-tests
diff autoindex.t @ 574:2cd00179f4b2
Tests: has_feature() introduced in Test::Nginx.
It is used to check in a platform-aware way for a non-standard capability.
Use it for shared memory ('shmem') and symlink. Notably, this enables
corresponding tests on win32 where/when appropriate.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 14 May 2015 14:46:13 +0300 |
parents | d9cfff372a30 |
children | e9064d691790 |
line wrap: on
line diff
--- a/autoindex.t Wed May 13 16:57:45 2015 +0300 +++ b/autoindex.t Thu May 14 14:46:13 2015 +0300 @@ -21,9 +21,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -plan(skip_all => 'no symlinks on win32') if $^O eq 'MSWin32'; - -my $t = Test::Nginx->new()->has(qw/http autoindex charset/)->plan(16) +my $t = Test::Nginx->new()->has(qw/http autoindex charset symlink/)->plan(16) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%%