diff mail_ssl.t @ 1743:2318ed01ce53

Tests: skip ALPN rejection tests with too old LibreSSL.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 21 Oct 2021 20:18:01 +0300
parents 7bfa47410cc0
children 38bd7e75fe69
line wrap: on
line diff
--- a/mail_ssl.t
+++ b/mail_ssl.t
@@ -217,6 +217,10 @@ like(Net::SSLeay::dump_peer_certificate(
 
 ok(get_ssl_socket(8148, undef, ['imap']), 'alpn');
 
+SKIP: {
+$t->{_configure_args} =~ /LibreSSL ([\d\.]+)/;
+skip 'LibreSSL too old', 1 if defined $1 and $1 lt '3.4.0';
+
 TODO: {
 local $TODO = 'not yet' unless $t->has_version('1.21.4');
 
@@ -224,6 +228,8 @@ ok(!get_ssl_socket(8148, undef, ['unknow
 
 }
 
+}
+
 # starttls imap
 
 $s = Test::Nginx::IMAP->new(PeerAddr => '127.0.0.1:' . port(8149));