changeset 1324:918bf90466e0

Tests: hide startup warnings about deprecated ssl.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 08 May 2018 13:59:22 +0300
parents 6eb3dd2d4d5a
children f80176242a7e
files mail_ssl.t ssl.t
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mail_ssl.t
+++ b/mail_ssl.t
@@ -161,7 +161,10 @@ foreach my $name ('localhost', 'inherits
 
 my $ctx = Net::SSLeay::CTX_new() or die("Failed to create SSL_CTX $!");
 $t->write_file('password', 'localhost');
+
+open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run();
+open STDERR, ">&", \*OLDERR;
 
 ###############################################################################
 
--- a/ssl.t
+++ b/ssl.t
@@ -190,7 +190,9 @@ my $ctx = new IO::Socket::SSL::SSL_Conte
 	SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
 	SSL_session_cache_size => 100);
 
+open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run();
+open STDERR, ">&", \*OLDERR;
 
 ###############################################################################