Mercurial > hg > nginx-tests
diff spdy.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 | 907e89fba9c3 |
children | 8593f34a12e5 |
line wrap: on
line diff
--- a/spdy.t +++ b/spdy.t @@ -33,10 +33,9 @@ eval { Compress::Raw::Zlib->WANT_GZIP_OR_ZLIB; }; plan(skip_all => 'Compress::Raw::Zlib not installed') if $@; -plan(skip_all => 'win32') if $^O eq 'MSWin32'; my $t = Test::Nginx->new() - ->has(qw/http proxy cache limit_conn rewrite spdy realip/); + ->has(qw/http proxy cache limit_conn rewrite spdy realip shmem/); $t->plan(82)->write_file_expand('nginx.conf', <<'EOF');