1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

call GC.start before fork-related tests to decrease GC cost on fork children

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-07-11 01:31:23 +00:00
parent 300b7c80e4
commit e2a17dad48
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ class TestNotImplement < Test::Unit::TestCase
end
def test_call_fork
GC.start
pid = nil
begin
Timeout.timeout(5) {

View file

@ -437,6 +437,7 @@ END
end
def test_rand_reseed_on_fork
GC.start
bug5661 = '[ruby-core:41209]'
assert_fork_status(1, bug5661) {Random.rand(4)}