summaryrefslogtreecommitdiff
path: root/test/ruby/test_beginendblock.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 02:32:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 02:32:37 +0000
commit361978beb23c00670679252bd9a0f8f9720e618d (patch)
treee9a68c1fc4c9c94d7e3892a7a6c4d9e7b90325c8 /test/ruby/test_beginendblock.rb
parent4e741f4b898b386023e9e4ae12dc1ff6a478c018 (diff)
test_beginendblock.rb: avoid leaking threads
* test/ruby/test_beginendblock.rb (test_endblock_raise): not only kill, but also wait the end. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_beginendblock.rb')
-rw-r--r--test/ruby/test_beginendblock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb
index a4318493c1..d15f21060d 100644
--- a/test/ruby/test_beginendblock.rb
+++ b/test/ruby/test_beginendblock.rb
@@ -141,7 +141,7 @@ EOW
assert_match(/e1/, out)
assert_match(/e6/, out)
ensure
- th.kill if th.alive?
+ th.kill.join if th.alive?
end
def test_nested_at_exit