summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-20 01:49:21 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-20 01:49:21 +0000
commite045a7253ebf5a61c23ceae3bb485d3264ce520c (patch)
tree6ccb9d3e8c445670ff1b214bdf3041a5d7fdad45 /test
parent16f36b6322f6c789f8b1ecc5c84bc8ea6a54841f (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_notimp.rb1
1 files changed, 1 insertions, 0 deletions
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