Mercurial > hg > nginx-tests
comparison gunzip_perl.t @ 774:adc32621fb09
Tests: skip IO::Compress::Gzip on win32.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 05 Nov 2015 12:56:35 +0300 |
parents | c877f91a71b4 |
children | cbd26265d9a3 |
comparison
equal
deleted
inserted
replaced
773:c877f91a71b4 | 774:adc32621fb09 |
---|---|
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 eval { require IO::Compress::Gzip; }; | 24 eval { require IO::Compress::Gzip; }; |
25 plan(skip_all => "IO::Compress::Gzip not found") if $@; | 25 plan(skip_all => "IO::Compress::Gzip not found") if $@; |
26 plan(skip_all => "IO::Compress::Gzip on win32") if $^O eq 'MSWin32'; | |
26 | 27 |
27 my $t = Test::Nginx->new()->has(qw/http gunzip perl/)->plan(2) | 28 my $t = Test::Nginx->new()->has(qw/http gunzip perl/)->plan(2) |
28 ->write_file_expand('nginx.conf', <<'EOF'); | 29 ->write_file_expand('nginx.conf', <<'EOF'); |
29 | 30 |
30 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |