Skip to content

Commit 8c96a69

Browse files
committed
Skip a new test when old OpenSSL
It does not raise an error when setting an invalid value to SSLContext ciphers on Ubuntu 18.04.
1 parent 862d92d commit 8c96a69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/openssl/test_ssl.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,10 @@ def test_ciphers_method_frozen_object
16541654
end
16551655

16561656
def test_ciphers_method_bogus_csuite
1657+
omit "Old #{OpenSSL::OPENSSL_LIBRARY_VERSION}" if
1658+
year = OpenSSL::OPENSSL_LIBRARY_VERSION[/\A OpenSSL\s+[01]\..*\s\K\d+\z/x] and
1659+
year.to_i <= 2018
1660+
16571661
ssl_ctx = OpenSSL::SSL::SSLContext.new
16581662

16591663
assert_raise_with_message(

0 commit comments

Comments
 (0)