diff options
-rw-r--r-- | test/ruby/test_process.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 752d28d62..06d252959 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 |