mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08: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:
1 parent
300b7c80e4
commit
e2a17dad48
2 files changed
+2
No files matched your search
@@ -21,6 +21,7 @@ class TestNotImplement < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_call_fork
|
||||
GC.start
|
||||
pid = nil
|
||||
begin
|
||||
Timeout.timeout(5) {
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in new issue
Block a user