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