ruby-changes:29859
From: naruse <ko1@a...>
Date: Thu, 11 Jul 2013 10:31:32 +0900 (JST)
Subject: [ruby-changes:29859] naruse:r41911 (trunk): call GC.start before fork-related tests to decrease GC cost on fork children
naruse 2013-07-11 10:31:23 +0900 (Thu, 11 Jul 2013) New Revision: 41911 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41911 Log: call GC.start before fork-related tests to decrease GC cost on fork children Modified files: trunk/test/ruby/test_notimp.rb trunk/test/ruby/test_rand.rb Index: test/ruby/test_notimp.rb =================================================================== --- test/ruby/test_notimp.rb (revision 41910) +++ test/ruby/test_notimp.rb (revision 41911) @@ -21,6 +21,7 @@ class TestNotImplement < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_notimp.rb#L21 end def test_call_fork + GC.start pid = nil begin Timeout.timeout(5) { Index: test/ruby/test_rand.rb =================================================================== --- test/ruby/test_rand.rb (revision 41910) +++ test/ruby/test_rand.rb (revision 41911) @@ -437,6 +437,7 @@ END https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rand.rb#L437 end def test_rand_reseed_on_fork + GC.start bug5661 = '[ruby-core:41209]' assert_fork_status(1, bug5661) {Random.rand(4)} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/