Mercurial > hg > nginx-tests
comparison mail_ssl_session_reuse.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 | 2e541778e5d8 |
children | 7b7b64569f55 |
comparison
equal
deleted
inserted
replaced
1855:b3bbde3f806d | 1856:ce4a06d72256 |
---|---|
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 eval { | 28 eval { |
27 require Net::SSLeay; | 29 require Net::SSLeay; |
28 Net::SSLeay::load_error_strings(); | 30 Net::SSLeay::load_error_strings(); |
29 Net::SSLeay::SSLeay_add_ssl_algorithms(); | 31 Net::SSLeay::SSLeay_add_ssl_algorithms(); |