summaryrefslogtreecommitdiff
path: root/bootstraptest/test_fork.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-26 05:02:21 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-26 05:02:21 +0000
commit4176051753dafbd2d73123cb5647b2c52231a1f4 (patch)
tree60584534449b15698ce161df09ed83b6540d1a67 /bootstraptest/test_fork.rb
parent3eff6d398bfa74e39afe3a7e78965a433d04f249 (diff)
* test_fork.rb: no need to test if fork(2) is not implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_fork.rb')
-rw-r--r--bootstraptest/test_fork.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb
index 6a34d9b..c6b1b71 100644
--- a/bootstraptest/test_fork.rb
+++ b/bootstraptest/test_fork.rb
@@ -10,10 +10,13 @@ assert_equal '0', %q{
}, '[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]'