1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show backtrace locations when I/O timed out

This commit is contained in:
aycabta 2021-08-08 09:25:12 +09:00
parent 1fe73128cd
commit 40ccb87a49

View file

@ -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]]