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:
parent
0ec61a3156
commit
3124b5fc3e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue