# HG changeset patch # User Sergey Kandaurov # Date 1433182532 -10800 # Node ID 153969b5378093b133ed17ae235c14587b518173 # Parent 66f4d8cb719e738e1e3f2e0168de376ea4a811f4 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. diff --git a/proxy_unfinished.t b/proxy_unfinished.t --- 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%% diff --git a/stream_proxy_ssl_verify.t b/stream_proxy_ssl_verify.t --- a/stream_proxy_ssl_verify.t +++ b/stream_proxy_ssl_verify.t @@ -24,6 +24,8 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/stream stream_ssl/)->has_daemon('openssl'); +$t->todo_alerts() if $^O eq 'solaris'; + $t->write_file_expand('nginx.conf', <<'EOF')->plan(6); %%TEST_GLOBALS%%