ruby-changes:11049
From: usa <ko1@a...>
Date: Thu, 26 Feb 2009 14:02:27 +0900 (JST)
Subject: [ruby-changes:11049] Ruby:r22643 (trunk): * test_fork.rb: no need to test if fork(2) is not implemented.
usa 2009-02-26 14:02:21 +0900 (Thu, 26 Feb 2009) New Revision: 22643 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22643 Log: * test_fork.rb: no need to test if fork(2) is not implemented. Modified files: trunk/bootstraptest/test_fork.rb Index: bootstraptest/test_fork.rb =================================================================== --- bootstraptest/test_fork.rb (revision 22642) +++ bootstraptest/test_fork.rb (revision 22643) @@ -10,10 +10,13 @@ }, '[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) + begin + children = (1..10).map{ + Thread.start{fork{}}.value + } + while !children.empty? and pid = Process.wait + children.delete(pid) + end + rescue NotImplementedError end }, '[ruby-core:22158]' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/