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

ruby-changes:34244

From: usa <ko1@a...>
Date: Tue, 3 Jun 2014 09:48:41 +0900 (JST)
Subject: [ruby-changes:34244] usa:r46325 (trunk): * test/openssl/test_ssl.rb (OpenSSL::TestSSL#test_verify_result):

usa	2014-06-03 09:48:29 +0900 (Tue, 03 Jun 2014)

  New Revision: 46325

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

  Log:
    * test/openssl/test_ssl.rb (OpenSSL::TestSSL#test_verify_result):
      shouldn't use same server for respective tests, because the 1st
      test sometimes kills the server main loop silently.
      [Bug #9881] [ruby-dev:48266]

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_ssl.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46324)
+++ ChangeLog	(revision 46325)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jun  3 09:45:13 2014  NAKAMURA Usaku  <usa@r...>
+
+	* test/openssl/test_ssl.rb (OpenSSL::TestSSL#test_verify_result):
+	  shouldn't use same server for respective tests, because the 1st
+	  test sometimes kills the server main loop silently.
+	  [Bug #9881] [ruby-dev:48266]
+
 Tue Jun  3 01:34:59 2014  Zachary Scott  <e@z...>
 
 	* README.EXT: [DOC] Add rb_call_super when subclassing from @robin850
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 46324)
+++ test/openssl/test_ssl.rb	(revision 46325)
@@ -251,7 +251,9 @@ class OpenSSL::TestSSL < OpenSSL::SSLTes https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L251
       ensure
         ssl.close
       end
+    }
 
+    start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true){|server, port|
       sock = TCPSocket.new("127.0.0.1", port)
       ctx = OpenSSL::SSL::SSLContext.new
       ctx.set_params(
@@ -268,7 +270,9 @@ class OpenSSL::TestSSL < OpenSSL::SSLTes https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L270
       ensure
         ssl.close
       end
+    }
 
+    start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true){|server, port|
       sock = TCPSocket.new("127.0.0.1", port)
       ctx = OpenSSL::SSL::SSLContext.new
       ctx.set_params(

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

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