diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-28 18:12:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-28 18:12:47 +0000 |
commit | f1cf168bcfc93d0f85c97594f902212b2ee16fba (patch) | |
tree | 977beec9e19f15b4300137b38c4b5afa32ac9004 /bootstraptest | |
parent | d0465cc9e07816fceee1e126a5b834de8ed2d6bd (diff) | |
download | ruby-f1cf168bcfc93d0f85c97594f902212b2ee16fba.tar.gz |
test_fork.rb: wait signals
* bootstraptest/test_fork.rb: wait until receiving both singals,
upto 0.1sec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_fork.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb index 91281a3640..5de6ee1b12 100644 --- a/bootstraptest/test_fork.rb +++ b/bootstraptest/test_fork.rb @@ -66,6 +66,7 @@ assert_equal '[1, 2]', %q{ Process.kill(:TERM, pid) end Process.wait(pid) + 100.times {break if a.size > 1; sleep 0.001} a.sort rescue NotImplementedError [1, 2] |