diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 752d28d62c..06d2529597 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1136,7 +1136,10 @@ class TestProcess < Test::Unit::TestCase pid = fork { sleep 1; exit } Thread.start { raise } Process.wait pid - sleep 2 + 5.times do + sleep 1 + break unless signal_received.empty? + end assert_equal [true], signal_received, " [ruby-core:19744]" rescue NotImplementedError, ArgumentError ensure