comparison limit_conn.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 b86c05516e65
children 45471a9017cc
comparison
equal deleted inserted replaced
573:517cde5075d8 574:2cd00179f4b2
19 ############################################################################### 19 ###############################################################################
20 20
21 select STDERR; $| = 1; 21 select STDERR; $| = 1;
22 select STDOUT; $| = 1; 22 select STDOUT; $| = 1;
23 23
24 plan(skip_all => 'win32') if $^O eq 'MSWin32'; 24 my $t = Test::Nginx->new()->has(qw/http proxy limit_conn limit_req shmem/)
25 25 ->plan(8);
26 my $t = Test::Nginx->new()->has(qw/http proxy limit_conn limit_req/)->plan(8);
27 26
28 $t->write_file_expand('nginx.conf', <<'EOF'); 27 $t->write_file_expand('nginx.conf', <<'EOF');
29 28
30 %%TEST_GLOBALS%% 29 %%TEST_GLOBALS%%
31 30