From 72c4c9eddadc4a037b516d53bc4ff3464799da9e Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 May 2014 08:04:02 +0000 Subject: test_monitor.rb: fix leaked threads * test/monitor/test_monitor.rb (test_killed_thread_in_synchronize): join work threads not to leak threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/monitor/test_monitor.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/monitor') diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb index 1d70222b44..8bd15ff55a 100644 --- a/test/monitor/test_monitor.rb +++ b/test/monitor/test_monitor.rb @@ -78,6 +78,9 @@ class TestMonitor < Test::Unit::TestCase ary << :main end assert_equal([:main], ary) + ensure + t1.join + t2.join end def test_try_enter -- cgit v1.2.3