From e5edfbf2074d2c99c7c0128688367c28fd911a26 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 Feb 2009 01:49:17 +0000 Subject: * 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 --- bootstraptest/test_fork.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb index 743c22c250..6a34d9b4ae 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]' -- cgit v1.2.3