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