summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-28 18:12:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-28 18:12:47 +0000
commitf1cf168bcfc93d0f85c97594f902212b2ee16fba (patch)
tree977beec9e19f15b4300137b38c4b5afa32ac9004
parentd0465cc9e07816fceee1e126a5b834de8ed2d6bd (diff)
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
-rw-r--r--bootstraptest/test_fork.rb1
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]