comparison proxy_unfinished.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 847ea345becb
children a9569f57da98
comparison
equal deleted inserted replaced
573:517cde5075d8 574:2cd00179f4b2
29 ############################################################################### 29 ###############################################################################
30 30
31 select STDERR; $| = 1; 31 select STDERR; $| = 1;
32 select STDOUT; $| = 1; 32 select STDOUT; $| = 1;
33 33
34 plan(skip_all => 'win32') if $^O eq 'MSWin32'; 34 my $t = Test::Nginx->new()->has(qw/http proxy cache sub shmem/)->plan(15)
35
36 my $t = Test::Nginx->new()->has(qw/http proxy cache sub/)->plan(15)
37 ->write_file_expand('nginx.conf', <<'EOF'); 35 ->write_file_expand('nginx.conf', <<'EOF');
38 36
39 %%TEST_GLOBALS%% 37 %%TEST_GLOBALS%%
40 38
41 daemon off; 39 daemon off;