Mercurial > hg > nginx-tests
comparison range_charset.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 | d5bf5942a8b2 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
573:517cde5075d8 | 574:2cd00179f4b2 |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | 25 my $t = Test::Nginx->new()->has(qw/http proxy cache charset shmem/)->plan(10) |
26 | |
27 my $t = Test::Nginx->new()->has(qw/http proxy cache charset/)->plan(10) | |
28 ->write_file_expand('nginx.conf', <<'EOF'); | 26 ->write_file_expand('nginx.conf', <<'EOF'); |
29 | 27 |
30 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
31 | 29 |
32 daemon off; | 30 daemon off; |