Mercurial > hg > nginx-tests
diff stream_ssl_alpn.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 | f2fe58b4b59f |
children | 38bd7e75fe69 |
line wrap: on
line diff
--- a/stream_ssl_alpn.t +++ b/stream_ssl_alpn.t @@ -86,12 +86,19 @@ is(get_ssl('first'), 'X first X', 'alpn is(get_ssl('wrong', 'first'), 'X first X', 'alpn many'); is(get_ssl('wrong', 'second'), 'X second X', 'alpn second'); is(get_ssl(), 'X X', 'no alpn'); + +SKIP: { +$t->{_configure_args} =~ /LibreSSL ([\d\.]+)/; +skip 'LibreSSL too old', 2 if defined $1 and $1 lt '3.4.0'; + ok(!get_ssl('wrong'), 'alpn mismatch'); $t->stop(); like($t->read_file('test.log'), qr/500$/, 'alpn mismatch - log'); +} + ############################################################################### sub get_ssl {