diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 05:13:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 05:13:40 +0000 |
commit | 72dce44d7b353b0e24324e235ca71d249de18515 (patch) | |
tree | fa57d9dc003cea65e123ddfd4ea69b426e1c0a69 /test/ruby/test_proc.rb | |
parent | 501afa013498079ba8d2bd047e86430fe17d2325 (diff) |
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
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |