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

ruby-changes:28797

From: nobu <ko1@a...>
Date: Mon, 20 May 2013 11:22:46 +0900 (JST)
Subject: [ruby-changes:28797] nobu:r40849 (trunk): test_objectspace.rb: run test_each_object separately

nobu	2013-05-20 11:22:35 +0900 (Mon, 20 May 2013)

  New Revision: 40849

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

  Log:
    test_objectspace.rb: run test_each_object separately
    
    * test/ruby/test_objectspace.rb (TestObjectSpace#test_each_object):
      run separately.

  Modified files:
    trunk/test/ruby/test_objectspace.rb

Index: test/ruby/test_objectspace.rb
===================================================================
--- test/ruby/test_objectspace.rb	(revision 40848)
+++ test/ruby/test_objectspace.rb	(revision 40849)
@@ -67,6 +67,7 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_objectspace.rb#L67
   end
 
   def test_each_object
+    assert_separately([], <<-End)
     GC.disable
     eval('begin; 1.times{}; rescue; ensure; end')
     arys = []
@@ -81,5 +82,6 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_objectspace.rb#L82
         # rescue "can't modify frozen File" error.
       end
     }
+    End
   end
 end

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

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