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

ruby-changes:39450

From: hsbt <ko1@a...>
Date: Tue, 11 Aug 2015 12:14:14 +0900 (JST)
Subject: [ruby-changes:39450] hsbt:r51531 (trunk): * test/openssl/test_ssl.rb: Fix LocalJumpErrors being raised

hsbt	2015-08-11 12:13:49 +0900 (Tue, 11 Aug 2015)

  New Revision: 51531

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

  Log:
    * test/openssl/test_ssl.rb: Fix LocalJumpErrors being raised
      in OpenSSL tests. [ruby-core:70020][Bug #11368]

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_ssl.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51530)
+++ ChangeLog	(revision 51531)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Aug 11 12:13:20 2015  Jeremy Evans  <merch-redmine@j...>
+
+	* test/openssl/test_ssl.rb: Fix LocalJumpErrors being raised
+	  in OpenSSL tests. [ruby-core:70020][Bug #11368]
+
 Tue Aug 11 11:54:13 2015  Alexey Lipnyagov  <liptonshmidt@g...>
 
 	* string.c: Fix documentation for String#slice
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 51530)
+++ test/openssl/test_ssl.rb	(revision 51531)
@@ -1164,7 +1164,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L1164
     ssl = ctx ? OpenSSL::SSL::SSLSocket.new(sock, ctx) : OpenSSL::SSL::SSLSocket.new(sock)
     ssl.sync_close = true
     ssl.connect
-    yield ssl
+    yield ssl if block_given?
   ensure
     if ssl
       ssl.close

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

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