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

ruby-changes:16205

From: nobu <ko1@a...>
Date: Sat, 5 Jun 2010 14:11:39 +0900 (JST)
Subject: [ruby-changes:16205] Ruby:r28170 (trunk, ruby_1_9_2): * test/net/imap/test_imap.rb (test_exception_during_shutdown):

nobu	2010-06-05 14:11:15 +0900 (Sat, 05 Jun 2010)

  New Revision: 28170

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

  Log:
    * test/net/imap/test_imap.rb (test_exception_during_shutdown):
      need to raise always.

  Modified files:
    branches/ruby_1_9_2/ChangeLog
    branches/ruby_1_9_2/test/net/imap/test_imap.rb
    trunk/ChangeLog
    trunk/test/net/imap/test_imap.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28169)
+++ ChangeLog	(revision 28170)
@@ -1,3 +1,8 @@
+Sat Jun  5 14:11:11 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/net/imap/test_imap.rb (test_exception_during_shutdown):
+	  need to raise always.
+
 Sat Jun  5 13:13:30 2010  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returning
Index: test/net/imap/test_imap.rb
===================================================================
--- test/net/imap/test_imap.rb	(revision 28169)
+++ test/net/imap/test_imap.rb	(revision 28170)
@@ -338,6 +338,7 @@
         imap.instance_eval do
           def @sock.shutdown(*args)
             super
+          ensure
             raise "error"
           end
         end
Index: ruby_1_9_2/ChangeLog
===================================================================
--- ruby_1_9_2/ChangeLog	(revision 28169)
+++ ruby_1_9_2/ChangeLog	(revision 28170)
@@ -1,3 +1,8 @@
+Sat Jun  5 14:11:11 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/net/imap/test_imap.rb (test_exception_during_shutdown):
+	  need to raise always.
+
 Sat Jun  5 13:10:47 2010  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returning
Index: ruby_1_9_2/test/net/imap/test_imap.rb
===================================================================
--- ruby_1_9_2/test/net/imap/test_imap.rb	(revision 28169)
+++ ruby_1_9_2/test/net/imap/test_imap.rb	(revision 28170)
@@ -316,7 +316,7 @@
   end
 
   def test_exception_during_shutdown
-    server = TCPServer.new(0)
+    server = create_tcp_server
     port = server.addr[1]
     Thread.start do
       begin
@@ -338,6 +338,7 @@
         imap.instance_eval do
           def @sock.shutdown(*args)
             super
+          ensure
             raise "error"
           end
         end

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

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