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
@ -67,8 +67,7 @@ class TestGc < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_singleton_method
|
def test_singleton_method
|
||||||
prev_stress = GC.stress
|
assert_in_out_err(%w[--disable-gems], <<-EOS, [], [], "[ruby-dev:42832]")
|
||||||
assert_nothing_raised("[ruby-dev:42832]") do
|
|
||||||
GC.stress = true
|
GC.stress = true
|
||||||
10.times do
|
10.times do
|
||||||
obj = Object.new
|
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
|
def obj.bar() raise "obj.foo is called, but this is obj.bar" end
|
||||||
obj.foo
|
obj.foo
|
||||||
end
|
end
|
||||||
end
|
EOS
|
||||||
ensure
|
|
||||||
GC.stress = prev_stress
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_gc_parameter
|
def test_gc_parameter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user