From e2a17dad48d286ecd04f7b9da59fd85f31011a44 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 11 Jul 2013 01:31:23 +0000 Subject: 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 --- test/ruby/test_notimp.rb | 1 + test/ruby/test_rand.rb | 1 + 2 files changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb index 9e80987a87..d16ad5155b 100644 --- a/test/ruby/test_notimp.rb +++ b/test/ruby/test_notimp.rb @@ -21,6 +21,7 @@ class TestNotImplement < Test::Unit::TestCase end def test_call_fork + GC.start pid = nil begin Timeout.timeout(5) { diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 98615f8d42..0517dd51c3 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -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)} -- cgit v1.2.3