1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-05-30 02:32:37 +00:00
parent 4e741f4b89
commit 361978beb2

View file

@ -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