From 4973efd7ca2a2699e3534c436850b575b9d6e5b5 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Dec 2015 06:03:30 +0000 Subject: test_ssl.rb: fix ssl option flags tests * test/openssl/test_ssl.rb (test_setting_twice): ignore fixed flags. some flags like SSL_OP_NO_SSL_MASK cannot change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 4398d7a0c5..5682bf5081 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -30,7 +30,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase ctx.options = 4 assert_equal 4, (ctx.options & OpenSSL::SSL::OP_ALL) ctx.options = OpenSSL::SSL::OP_ALL - assert_equal OpenSSL::SSL::OP_ALL, ctx.options + assert_equal OpenSSL::SSL::OP_ALL, (ctx.options & OpenSSL::SSL::OP_ALL) end def test_options_setting_nil_means_all -- cgit v1.2.3