changeset 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 66f4d8cb719e
children 868ff7169ec8
files proxy_unfinished.t stream_proxy_ssl_verify.t
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
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%%
 
--- 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%%