diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-05 02:03:18 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-05 02:03:18 +0000 |
commit | c47c38de93db16ae2f24b7c6f45aa6700f62eb08 (patch) | |
tree | 56282d34449fa145a5b4bce837b0c84371323b98 /test/ruby | |
parent | a07b764f9e1e6c36f77b2101184cf63b7513f8f4 (diff) | |
download | ruby-c47c38de93db16ae2f24b7c6f45aa6700f62eb08.tar.gz |
Retry on checking signal_received.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 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 |