Mercurial > hg > nginx-tests
diff smtp-xclient.t @ 96:ecff5407867c
Tests: better handle unexpected connection close from nginx.
Problem found when running test suite indefinitely against nginx with
intentionally broken malloc().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 08 Jun 2009 23:27:30 +0400 |
parents | 5f56040c39df |
children | 1c0ec30614c6 |
line wrap: on
line diff
--- a/smtp-xclient.t Mon Jun 08 23:06:18 2009 +0400 +++ b/smtp-xclient.t Mon Jun 08 23:27:30 2009 +0400 @@ -23,6 +23,8 @@ select STDERR; $| = 1; select STDOUT; $| = 1; +local $SIG{PIPE} = 'IGNORE'; + my $t = Test::Nginx->new()->has('mail')->plan(6) ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) ->write_file_expand('nginx.conf', <<'EOF')->run();