ruby-changes:34127
From: nobu <ko1@a...>
Date: Wed, 28 May 2014 17:04:03 +0900 (JST)
Subject: [ruby-changes:34127] nobu:r46208 (trunk): drbtest.rb: avoid leaking threads
nobu 2014-05-28 17:03:55 +0900 (Wed, 28 May 2014) New Revision: 46208 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46208 Log: drbtest.rb: avoid leaking threads * test/drb/drbtest.rb (test_06_timeout): clean up worker threads to avoid leaking threads. Modified files: trunk/test/drb/drbtest.rb Index: test/drb/drbtest.rb =================================================================== --- test/drb/drbtest.rb (revision 46207) +++ test/drb/drbtest.rb (revision 46208) @@ -191,6 +191,10 @@ module DRbCore https://github.com/ruby/ruby/blob/trunk/test/drb/drbtest.rb#L191 assert_raise(TimeoutError) do @there.do_timeout(ten) end + ensure + DRbService.server.instance_variable_get(:@grp).list.each do |th| + th.kill.join + end end def test_07_public_private_protected_missing -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/