mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Retry on checking signal_received.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a07b764f9e
commit
c47c38de93
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue