diff options
author | aycabta <aycabta@gmail.com> | 2021-08-08 09:25:12 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-08-08 09:25:12 +0900 |
commit | 40ccb87a498ec45acc2d2f3e05460b128e9a411c (patch) | |
tree | d715bdd4ab3b76d506cbe79011cde7b4d9f05b73 /test/readline | |
parent | 1fe73128cd3d3fb49f042c6613dc86c409927423 (diff) |
Show backtrace locations when I/O timed out
Diffstat (limited to 'test/readline')
-rw-r--r-- | test/readline/test_readline.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 2b9726f50e..196429d754 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -541,8 +541,8 @@ module BasetestReadline 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]] |