diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-11 01:31:23 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-11 01:31:23 +0000 |
commit | e2a17dad48d286ecd04f7b9da59fd85f31011a44 (patch) | |
tree | b51f39b766357bfc115c0d9a3203c6834e0d4ba0 /test/ruby | |
parent | 300b7c80e4266fd4ed15b503d503f68def64aa67 (diff) | |
download | ruby-e2a17dad48d286ecd04f7b9da59fd85f31011a44.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_notimp.rb | 1 | ||||
-rw-r--r-- | test/ruby/test_rand.rb | 1 |
2 files changed, 2 insertions, 0 deletions
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)} |