diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 08:04:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 08:04:02 +0000 |
commit | 72c4c9eddadc4a037b516d53bc4ff3464799da9e (patch) | |
tree | 360443d80532b19aba3ffd66877573d403a2c227 /test/monitor | |
parent | 93fc059178c22cf58f8bcaf356bdb023a7363e3a (diff) |
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
Diffstat (limited to 'test/monitor')
-rw-r--r-- | test/monitor/test_monitor.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |