diff options
-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)} |