[前][次][番号順一覧][スレッド一覧]

ruby-changes:70545

From: aycabta <ko1@a...>
Date: Fri, 24 Dec 2021 20:55:28 +0900 (JST)
Subject: [ruby-changes:70545] 0fbf1f193a (master): Add logging about timeout

https://git.ruby-lang.org/ruby.git/commit/?id=0fbf1f193a

From 0fbf1f193a863a2aa2d69621b530668a268e539a Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Fri, 24 Dec 2021 20:55:59 +0900
Subject: Add logging about timeout

---
 test/readline/test_readline.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 2f671d4e6fd..ad6be82f998 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -568,6 +568,7 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L568
       end
     rescue Timeout::Error => e
       Process.kill(:KILL, pid)
+      log << "\nKilled by timeout"
       assert false, "Timed out to handle SIGINT!\nLog: #{log}\nBacktrace:\n#{e.full_message(highlight: false)}\n----"
     ensure
       status = nil
@@ -576,6 +577,7 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L577
           status = Process.wait2(pid).last
         end
       rescue Timeout::Error => e
+        log << "\nKilled by timeout to wait2"
         Process.kill(:KILL, pid)
         assert false, "Timed out to wait for terminating a process in a test of SIGINT!\nLog: #{log}\nBacktrace:\n#{e.full_message(highlight: false)}\n----"
       end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]