1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Refix timing problem.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-16 06:20:06 +00:00
parent 0ec61a3156
commit 3124b5fc3e

View file

@ -1187,9 +1187,10 @@ class TestProcess < Test::Unit::TestCase
def test_wait_and_sigchild
signal_received = []
Signal.trap(:CHLD) { signal_received << true }
pid = fork { sleep 2; exit }
pid = fork { sleep 0.1; exit }
Thread.start { raise }
Process.wait pid
sleep 0.1
assert_equal [true], signal_received, " [ruby-core:19744]"
rescue NotImplementedError, ArgumentError
ensure