Mercurial > hg > nginx-tests
comparison mail_error_log.t @ 1856:ce4a06d72256
Tests: SIGPIPE handling in mail tests.
In contrast to http tests, mail tests generally do not try to handle
SIGPIPE when writing to a socket, and instead rely on $SIG{PIPE} being
set at the start of the test (see 96:ecff5407867c). Fixed some tests
which don't do this.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 18 May 2023 18:06:59 +0300 |
parents | 74986ebee2fd |
children | 38f1fd9ca3e6 |
comparison
equal
deleted
inserted
replaced
1855:b3bbde3f806d | 1856:ce4a06d72256 |
---|---|
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 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | 31 plan(skip_all => 'win32') if $^O eq 'MSWin32'; |
30 | 32 |
31 my $t = Test::Nginx->new()->has(qw/mail imap http rewrite/); | 33 my $t = Test::Nginx->new()->has(qw/mail imap http rewrite/); |
32 | 34 |