From a2d874f860243205a1f8d373ceac5e6e528871ac Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Wed, 11 Oct 2023 15:14:55 +0900 Subject: [PATCH] WIP add thread list checker --- test/ruby/test_thread.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 05c8a28732a2ef..031721f7ab442e 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -164,6 +164,8 @@ def test_thread_interrupt_for_killed_thread t = Thread.new{sleep 0} t.raise Interrupt Thread.pass # allow t to finish + n = Thread.list.size + raise "#{n} > 1000" if n > 1000 end _end end