[PATCH 1 of 5] Tests: adjusted stream_ssl_alpn.t to handle old SSL libraries

Maxim Dounin mdounin at mdounin.ru
Wed May 1 01:53:07 UTC 2024


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1714526964 -10800
#      Wed May 01 04:29:24 2024 +0300
# Node ID 8566a3522573e6b59dea2995c2d1c4c4524ecc86
# Parent  fe6f22da53ec760f7ab138d1d32b7a03ea7bdea3
Tests: adjusted stream_ssl_alpn.t to handle old SSL libraries.

The "ssl_alpn" directive of the stream module requires an SSL library with
ALPN support, and startup fails if the directive is used in the configuration
but ALPN support is not available (notably, with OpenSSL before 1.0.2).
Restored try_run() to skip the test in this case.

diff --git a/stream_ssl_alpn.t b/stream_ssl_alpn.t
--- a/stream_ssl_alpn.t
+++ b/stream_ssl_alpn.t
@@ -71,7 +71,7 @@ foreach my $name ('localhost') {
 		or die "Can't create certificate for $name: $!\n";
 }
 
-$t->run()->plan(6);
+$t->try_run('no ssl_alpn')->plan(6);
 
 ###############################################################################
 




More information about the nginx-devel mailing list