ruby-changes:72482
From: Nobuyoshi <ko1@a...>
Date: Sat, 9 Jul 2022 15:27:00 +0900 (JST)
Subject: [ruby-changes:72482] 949c3afb48 (master): [ruby/openssl] Skip a new test when old OpenSSL
https://git.ruby-lang.org/ruby.git/commit/?id=949c3afb48 From 949c3afb48d2afd02c2bfa569e29f6a3a48c1607 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 9 Jul 2022 14:29:35 +0900 Subject: [ruby/openssl] 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. https://github.com/ruby/openssl/commit/8c96a69b0d --- test/openssl/test_ssl.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 449dd992f6..5679ae77d7 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -1654,6 +1654,10 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L1654 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( -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/