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 committed 2013-07-11 01:31:23 +00:00
1 parent 300b7c80e4
commit e2a17dad48
2 files changed
+2

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ class TestNotImplement < Test::Unit::TestCase
end
def test_call_fork
GC.start
pid = nil
begin
Timeout.timeout(5) {
+1
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)}