Use SIGSEGV to kill a parallel test worker (to dump backtrace)

This commit is contained in:
Yusuke Endoh 2024-08-07 09:43:34 +09:00
parent fa3d9fdaed
commit fdfde6ab2e

View File

@ -415,8 +415,8 @@ module Test
end end
def kill def kill
Process.kill(:KILL, @pid) Process.kill(:SEGV, @pid)
warn "worker #{to_s} does not respond; SIGKILL is sent" warn "worker #{to_s} does not respond; SIGSEGV is sent"
rescue Errno::ESRCH rescue Errno::ESRCH
end end