summaryrefslogtreecommitdiff
path: root/bootstraptest/test_fork.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 01:49:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 01:49:17 +0000
commite5edfbf2074d2c99c7c0128688367c28fd911a26 (patch)
tree2e05220df5e7ed43f62cbabf4e538f4f9a50f1a9 /bootstraptest/test_fork.rb
parent28ec52c087c1cf621c55ac7bd412465623fc6379 (diff)
* bootstraptest/test_fork.rb: test for [ruby-core:22158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_fork.rb')
-rw-r--r--bootstraptest/test_fork.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb
index 743c22c..6a34d9b 100644
--- a/bootstraptest/test_fork.rb
+++ b/bootstraptest/test_fork.rb
@@ -8,3 +8,12 @@ assert_equal '0', %q{
0
end
}, '[ruby-dev:32404]'
+
+assert_finish 10, %q{
+ children = (1..10).map{
+ Thread.start{fork{}}.value
+ }
+ while !children.empty? and pid = Process.wait
+ children.delete(pid)
+ end
+}, '[ruby-core:22158]'