ruby-changes:34057
From: nobu <ko1@a...>
Date: Mon, 26 May 2014 17:04:25 +0900 (JST)
Subject: [ruby-changes:34057] nobu:r46138 (trunk): test_monitor.rb: fix leaked threads
nobu 2014-05-26 17:04:02 +0900 (Mon, 26 May 2014) New Revision: 46138 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46138 Log: test_monitor.rb: fix leaked threads * test/monitor/test_monitor.rb (test_killed_thread_in_synchronize): join work threads not to leak threads. Modified files: trunk/test/monitor/test_monitor.rb Index: test/monitor/test_monitor.rb =================================================================== --- test/monitor/test_monitor.rb (revision 46137) +++ test/monitor/test_monitor.rb (revision 46138) @@ -78,6 +78,9 @@ class TestMonitor < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/monitor/test_monitor.rb#L78 ary << :main end assert_equal([:main], ary) + ensure + t1.join + t2.join end def test_try_enter -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/