From 361978beb23c00670679252bd9a0f8f9720e618d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 May 2014 02:32:37 +0000 Subject: 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 --- test/ruby/test_beginendblock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3