[nginx-tests] Tests: adjusted stream_ssl_alpn.t to handle old SS...
Maxim Dounin
mdounin at mdounin.ru
Sun May 5 21:05:01 UTC 2024
details: http://freenginx.org/hg/nginx-tests/rev/3ba1668cea87
branches:
changeset: 1969:3ba1668cea87
user: Maxim Dounin <mdounin at mdounin.ru>
date: Mon May 06 00:03:01 2024 +0300
description:
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.
diffstat:
stream_ssl_alpn.t | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
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