summaryrefslogtreecommitdiff
path: root/test/monitor
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-26 08:04:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-26 08:04:02 +0000
commit72c4c9eddadc4a037b516d53bc4ff3464799da9e (patch)
tree360443d80532b19aba3ffd66877573d403a2c227 /test/monitor
parent93fc059178c22cf58f8bcaf356bdb023a7363e3a (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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb
index 1d70222..8bd15ff 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