From cc6ab53f592016daf6f4ef0075e4f33f365d638f Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 18 Apr 2012 03:38:09 +0000 Subject: Run separate process this GC.stress test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index bcc490626d..adcf85e79e 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -67,8 +67,7 @@ class TestGc < Test::Unit::TestCase 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 @@ class TestGc < Test::Unit::TestCase 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 -- cgit v1.2.3