From e50746da001ec16cbed6a6c842f43cf0f4de9364 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 Dec 2014 21:55:17 +0000 Subject: test_gc.rb: wait * test/ruby/test_gc.rb (test_interrupt_in_finalizer): wait longer and send more interrupts for slower cases. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 4bcf7593d2..f159421dac 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -342,10 +342,12 @@ class TestGc < Test::Unit::TestCase error = nil status = nil EnvUtil.invoke_ruby(["-e", src], "", false, true) do |_, _, stderr, pid| - sleep 0.1 - Process.kill("INT", pid) + 10.times { + sleep 0.1 + Process.kill("INT", pid) rescue break + } th = Thread.start do - sleep 1 + sleep 5 Process.kill("KILL", pid) rescue nil end error = stderr.read -- cgit v1.2.3