diff proxy_unfinished.t @ 598:153969b53780

Tests: expect occasional alerts on solaris in certain tests. They may be produced as follows with the default "/dev/poll" event method. [alert] 20775#1: phantom event 0004 for closed and removed socket 17 In proxy_unfinished.t, this is caused by closing upstream connection with repeated read event notifications after EOF, and in stream_proxy_ssl_verify.t, this is due to finalizing stream proxy before stream proxy connected upstream.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 01 Jun 2015 21:15:32 +0300
parents a9569f57da98
children f4189a38c3a4
line wrap: on
line diff
--- a/proxy_unfinished.t
+++ b/proxy_unfinished.t
@@ -31,8 +31,11 @@ use Test::Nginx;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/http proxy cache sub shmem/)->plan(15)
-	->write_file_expand('nginx.conf', <<'EOF');
+my $t = Test::Nginx->new()->has(qw/http proxy cache sub shmem/)->plan(15);
+
+$t->todo_alerts() if $^O eq 'solaris';
+
+$t->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%