diff options
Diffstat (limited to 'tool/lib')
-rw-r--r-- | tool/lib/test/unit.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index da46da59d0..30f30df62e 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -415,8 +415,9 @@ module Test end def kill - Process.kill(:SEGV, @pid) - warn "worker #{to_s} does not respond; SIGSEGV is sent" + signal = RUBY_PLATFORM =~ /mswin|mingw/ ? :KILL : :SEGV + Process.kill(signal, @pid) + warn "worker #{to_s} does not respond; #{signal} is sent" rescue Errno::ESRCH end |