ruby-changes:10822
From: nobu <ko1@a...>
Date: Wed, 18 Feb 2009 10:50:16 +0900 (JST)
Subject: [ruby-changes:10822] Ruby:r22390 (trunk): * bootstraptest/test_fork.rb: test for
nobu 2009-02-18 10:49:17 +0900 (Wed, 18 Feb 2009) New Revision: 22390 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22390 Log: * bootstraptest/test_fork.rb: test for [ruby-core:22158] Modified files: trunk/bootstraptest/test_fork.rb Index: bootstraptest/test_fork.rb =================================================================== --- bootstraptest/test_fork.rb (revision 22389) +++ bootstraptest/test_fork.rb (revision 22390) @@ -8,3 +8,12 @@ 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]' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/