mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
GC before fork to avoid spending too much time in timeout block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16f36b6322
commit
e045a7253e
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class TestNotImplement < Test::Unit::TestCase
|
|||
|
||||
def test_call_fork
|
||||
pid = nil
|
||||
GC.start
|
||||
Timeout.timeout(1) {
|
||||
pid = fork {}
|
||||
Process.wait pid
|
||||
|
|
Loading…
Reference in a new issue