From 72dce44d7b353b0e24324e235ca71d249de18515 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 May 2014 05:13:40 +0000 Subject: test/ruby: fix leaked threads * test/thread/test_{backtrace,beginendblock,proc,threadgroup}.rb: join work threads not to leak threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_proc.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_proc.rb') diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 1c8a053cca..284b518121 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -407,6 +407,7 @@ class TestProc < Test::Unit::TestCase t = Thread.new { sleep } assert_raise(ThreadError) { t.instance_eval { initialize { } } } t.kill + t.join end def test_to_proc -- cgit v1.2.3