# HG changeset patch # User Sergey Kandaurov # Date 1521717513 -10800 # Node ID 23026106e4397d691d54b75101b3e7c8a7736273 # Parent 5e9695bd370a7de0fdb814f4699e42ee01a849f7 Tests: unbreak stream_ssl_preread_alpn.t on OpenSSL < 1.0.2h. Do not check return value for empty ALPN test case, since older OpenSSL versions tolerate empty strings. The test is still useful for coverage. diff --git a/stream_ssl_preread_alpn.t b/stream_ssl_preread_alpn.t --- a/stream_ssl_preread_alpn.t +++ b/stream_ssl_preread_alpn.t @@ -100,7 +100,7 @@ foreach my $name ('localhost') { or die "Can't create certificate for $name: $!\n"; } -$t->try_run('no ssl_preread_alpn_protocols')->plan(6); +$t->try_run('no ssl_preread_alpn_protocols')->plan(5); ############################################################################### @@ -114,9 +114,7 @@ is(get_ssl(8081, 'bar'), $p2, 'alpn 2 ag is(get_ssl(8081, 'foo', 'bar'), $p3, 'alpn many'); -# fallback to an empty value - -ok(!get_ssl(8081, ''), 'alpn empty'); +get_ssl(8081, ''); ###############################################################################