diff options
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 8 |
1 files 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 |