From e045a7253ebf5a61c23ceae3bb485d3264ce520c Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 20 Jun 2013 01:49:21 +0000 Subject: 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 --- test/ruby/test_notimp.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_notimp.rb') diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb index 0fad1cd66b..04f1d8550d 100644 --- a/test/ruby/test_notimp.rb +++ b/test/ruby/test_notimp.rb @@ -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 -- cgit v1.2.3