Skip to content

Commit

Permalink
Skip a new test when old OpenSSL
Browse files Browse the repository at this point in the history
It does not raise an error when setting an invalid value to SSLContext
ciphers on Ubuntu 18.04.
  • Loading branch information
nobu committed Jul 9, 2022
1 parent 862d92d commit 8c96a69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/openssl/test_ssl.rb
Expand Up @@ -1654,6 +1654,10 @@ def test_ciphers_method_frozen_object
end

def test_ciphers_method_bogus_csuite
omit "Old #{OpenSSL::OPENSSL_LIBRARY_VERSION}" if
year = OpenSSL::OPENSSL_LIBRARY_VERSION[/\A OpenSSL\s+[01]\..*\s\K\d+\z/x] and
year.to_i <= 2018

ssl_ctx = OpenSSL::SSL::SSLContext.new

assert_raise_with_message(
Expand Down

0 comments on commit 8c96a69

Please sign in to comment.