aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_fiber.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 07:47:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 07:47:12 +0000
commit4835230fef0005666e89fd1e2da5ad03ddb78315 (patch)
treeea99eaee3a04a5710f8a10900f76d637fb0069f1 /test/ruby/test_fiber.rb
parentc4561c29348c357f50162cdd5c16d8b98d8cd0fa (diff)
downloadruby-4835230fef0005666e89fd1e2da5ad03ddb78315.tar.gz
test/ruby: reap zombies
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_fiber.rb')
-rw-r--r--test/ruby/test_fiber.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index 38050386c4..957c134589 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -248,12 +248,13 @@ class TestFiber < Test::Unit::TestCase
def test_fork_from_fiber
begin
- Process.fork{}
+ pid = Process.fork{}
rescue NotImplementedError
return
+ else
+ Process.wait(pid)
end
bug5700 = '[ruby-core:41456]'
- pid = nil
assert_nothing_raised(bug5700) do
Fiber.new{ pid = fork {} }.resume
end