[PATCH 5 of 6] Tests: added missing socket_ssl_alpn guard in mail_ssl.t

Sergey Kandaurov pluknet at nginx.com
Mon May 22 19:52:17 UTC 2023


# HG changeset patch
# User Sergey Kandaurov <pluknet at nginx.com>
# Date 1684784660 -14400
#      Mon May 22 23:44:20 2023 +0400
# Node ID 633613b924b957fc18dde972ff346fe92b9e823e
# Parent  42066e126d2ca0f6d5095d818910559adf5d4bdc
Tests: added missing socket_ssl_alpn guard in mail_ssl.t.

diff --git a/mail_ssl.t b/mail_ssl.t
--- a/mail_ssl.t
+++ b/mail_ssl.t
@@ -164,6 +164,10 @@ like($s->socket()->dump_peer_certificate
 
 # alpn
 
+TODO: {
+local $TODO = 'no ALPN support in IO::Socket::SSL'
+	unless $t->has_feature('socket_ssl_alpn');
+
 $s = Test::Nginx::IMAP->new(
 	PeerAddr => '127.0.0.1:' . port(8148),
 	SSL => 1,
@@ -171,6 +175,8 @@ like($s->socket()->dump_peer_certificate
 );
 $s->ok('alpn');
 
+}
+
 SKIP: {
 skip 'LibreSSL too old', 1
 	if $t->has_module('LibreSSL')


More information about the nginx-devel mailing list