Skip to content

Commit a1da759

Browse files
committed
Tests: hide startup warnings about deprecated ssl.
1 parent 663338a commit a1da759

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

mail_ssl.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ foreach my $name ('localhost', 'inherits') {
161161

162162
my $ctx = Net::SSLeay::CTX_new() or die("Failed to create SSL_CTX $!");
163163
$t->write_file('password', 'localhost');
164+
165+
open OLDERR, ">&", \*STDERR; close STDERR;
164166
$t->run();
167+
open STDERR, ">&", \*OLDERR;
165168

166169
###############################################################################
167170

ssl.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ my $ctx = new IO::Socket::SSL::SSL_Context(
190190
SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
191191
SSL_session_cache_size => 100);
192192

193+
open OLDERR, ">&", \*STDERR; close STDERR;
193194
$t->run();
195+
open STDERR, ">&", \*OLDERR;
194196

195197
###############################################################################
196198

0 commit comments

Comments
 (0)