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