diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 0af93a8bc2..f7048c3f80 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -10,10 +10,13 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase assert (OpenSSL::SSL::OP_ALL & ctx.options) == OpenSSL::SSL::OP_ALL, "OP_ALL is set by default" - ctx.options = 4 - assert_equal 4, ctx.options ctx.options = nil assert_equal OpenSSL::SSL::OP_ALL, ctx.options + ctx.options = 4 + assert_equal 4, ctx.options & 4 + if ctx.options != 4 + pend "SSL_CTX_set_options() seems to be modified by distributor" + end assert_equal true, ctx.setup assert_predicate ctx, :frozen?