Mercurial > hg > nginx-tests
comparison smtp.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 | 24143894b91b |
children | 1c0ec30614c6 |
comparison
equal
deleted
inserted
replaced
95:cbc17561ef4d | 96:ecff5407867c |
---|---|
22 | 22 |
23 ############################################################################### | 23 ############################################################################### |
24 | 24 |
25 select STDERR; $| = 1; | 25 select STDERR; $| = 1; |
26 select STDOUT; $| = 1; | 26 select STDOUT; $| = 1; |
27 | |
28 local $SIG{PIPE} = 'IGNORE'; | |
27 | 29 |
28 my $t = Test::Nginx->new() | 30 my $t = Test::Nginx->new() |
29 ->has('mail')->plan(25) | 31 ->has('mail')->plan(25) |
30 ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) | 32 ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) |
31 ->write_file_expand('nginx.conf', <<'EOF')->run(); | 33 ->write_file_expand('nginx.conf', <<'EOF')->run(); |