[前][次][番号順一覧][スレッド一覧]

ruby-changes:40956

From: nobu <ko1@a...>
Date: Fri, 11 Dec 2015 15:03:44 +0900 (JST)
Subject: [ruby-changes:40956] nobu:r53035 (trunk): test_ssl.rb: fix ssl option flags tests

nobu	2015-12-11 15:03:30 +0900 (Fri, 11 Dec 2015)

  New Revision: 53035

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53035

  Log:
    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.

  Modified files:
    trunk/test/openssl/test_ssl.rb
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 53034)
+++ test/openssl/test_ssl.rb	(revision 53035)
@@ -30,7 +30,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTes https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L30
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]