summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest')
-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 6a34d9b4ae..c6b1b71a60 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]'