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

test_thread.rb: thread leak

* test/ruby/test_thread.rb (test_handle_interrupt_blocking): fix
  thread leak.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-10-02 00:31:31 +00:00
parent ae8c13f517
commit 337bf75b32

View file

@ -645,11 +645,9 @@ class TestThread < Test::Unit::TestCase
end end
} }
} }
sleep 1 assert_raise(e) {sleep 1}
r=:ng ensure
th.raise RuntimeError assert_raise(RuntimeError) {th.join(0)}
th.join
rescue e
end end
assert_equal(:ok,r) assert_equal(:ok,r)
end end