comparison fastcgi_cache.t @ 221:8d2c6358d830

Tests: avoid using FCGI on win32. The FCGI.pm under Windows refuses to listen on 127.0.0.1 and insists on listening on INADDR_ANY. We don't want to.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 02 Jun 2012 22:58:09 +0400
parents a7cc4371f4ad
children 6a0d934950bc
comparison
equal deleted inserted replaced
220:f6f60780f758 221:8d2c6358d830
21 select STDERR; $| = 1; 21 select STDERR; $| = 1;
22 select STDOUT; $| = 1; 22 select STDOUT; $| = 1;
23 23
24 eval { require FCGI; }; 24 eval { require FCGI; };
25 plan(skip_all => 'FCGI not installed') if $@; 25 plan(skip_all => 'FCGI not installed') if $@;
26 plan(skip_all => 'win32') if $^O eq 'MSWin32';
26 27
27 my $t = Test::Nginx->new()->has(qw/http fastcgi cache/)->plan(5) 28 my $t = Test::Nginx->new()->has(qw/http fastcgi cache/)->plan(5)
28 ->write_file_expand('nginx.conf', <<'EOF'); 29 ->write_file_expand('nginx.conf', <<'EOF');
29 30
30 %%TEST_GLOBALS%% 31 %%TEST_GLOBALS%%