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:
parent
4e741f4b89
commit
361978beb2
@ -141,7 +141,7 @@ EOW
|
|||||||
assert_match(/e1/, out)
|
assert_match(/e1/, out)
|
||||||
assert_match(/e6/, out)
|
assert_match(/e6/, out)
|
||||||
ensure
|
ensure
|
||||||
th.kill if th.alive?
|
th.kill.join if th.alive?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_nested_at_exit
|
def test_nested_at_exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user