Reap rarely leaked threads
This commit is contained in:
parent
2fa0d51ac9
commit
c19685e208
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user