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

* 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
This commit is contained in:
nobu 2009-02-18 01:49:17 +00:00
parent 28ec52c087
commit e5edfbf207

View file

@ -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]'