diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-18 03:38:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-18 03:38:09 +0000 |
commit | cc6ab53f592016daf6f4ef0075e4f33f365d638f (patch) | |
tree | 3c520fdca07b48faed0215a69977f2ccc7762c68 /test/ruby | |
parent | 8de83c5198d72edeb0f65229bea535d7062689da (diff) | |
download | ruby-cc6ab53f592016daf6f4ef0075e4f33f365d638f.tar.gz |
Run separate process this GC.stress test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_gc.rb | 7 |
1 files changed, 2 insertions, 5 deletions
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 |