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

ruby-changes:67072

From: aycabta <ko1@a...>
Date: Sun, 8 Aug 2021 09:25:03 +0900 (JST)
Subject: [ruby-changes:67072] 40ccb87a49 (master): Show backtrace locations when I/O timed out

https://git.ruby-lang.org/ruby.git/commit/?id=40ccb87a49

From 40ccb87a498ec45acc2d2f3e05460b128e9a411c Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sun, 8 Aug 2021 09:25:12 +0900
Subject: Show backtrace locations when I/O timed out

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

diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 2b9726f..196429d 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -541,8 +541,8 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L541
             end
           end
         end
-      rescue Timeout::Error
-        assert false, "Timed out to handle SIGINT.\nLog: #{log}\n----"
+      rescue Timeout::Error => e
+        assert false, "Timed out to handle SIGINT.\nLog: #{log}\nBacktrace:\n#{e.backtrace_locations.join("\n")}\n----"
         asserted = true
       end
       [log, Process.wait2(pid)[1]]
-- 
cgit v1.1


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

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