mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Run separate process this GC.stress test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8de83c5198
commit
cc6ab53f59
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue