1
0
Fork 0
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:
naruse 2009-11-05 02:03:18 +00:00
parent a07b764f9e
commit c47c38de93

View file

@ -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