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

Reap rarely leaked threads

This commit is contained in:
Nobuyoshi Nakada 2021-10-14 22:56:42 +09:00
parent 2fa0d51ac9
commit c19685e208
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -89,6 +89,9 @@ class TestThreadConditionVariable < Test::Unit::TestCase
end
assert_equal ["C1", "C1", "C1", "P1", "P2", "C2", "C2", "C2"], result
ensure
threads.each(&:kill)
threads.each(&:join)
end
def test_condvar_wait_deadlock