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

ruby-changes:23331

From: naruse <ko1@a...>
Date: Wed, 18 Apr 2012 12:38:20 +0900 (JST)
Subject: [ruby-changes:23331] naruse:r35382 (trunk): Run separate process this GC.stress test.

naruse	2012-04-18 12:38:09 +0900 (Wed, 18 Apr 2012)

  New Revision: 35382

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

  Log:
    Run separate process this GC.stress test.

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

Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 35381)
+++ test/ruby/test_gc.rb	(revision 35382)
@@ -67,8 +67,7 @@
   end
 
   def test_singleton_method
-    prev_stress = GC.stress
-    assert_nothing_raised("[ruby-dev:42832]") do
+    assert_in_out_err(%w[--disable-gems], <<-EOS, [], [], "[ruby-dev:42832]")
       GC.stress = true
       10.times do
         obj = Object.new
@@ -76,9 +75,7 @@
         def obj.bar() raise "obj.foo is called, but this is obj.bar" end
         obj.foo
       end
-    end
-  ensure
-    GC.stress = prev_stress
+    EOS
   end
 
   def test_gc_parameter

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

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