mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Outer block is required to rescue Timeout::Error
This commit is contained in:
parent
79cc566ab4
commit
e5f6cd7045
1 changed files with 2 additions and 2 deletions
|
@ -556,9 +556,9 @@ module BasetestReadline
|
|||
end
|
||||
end
|
||||
assert interrupt_suppressed, "Should handle SIGINT correctly but raised interrupt.\nLog: #{log}\n----"
|
||||
rescue Timeout::Error => e
|
||||
assert false, "Timed out to handle SIGINT!\nLog: #{log}\nBacktrace:\n#{e.full_message(highlight: false)}\n----"
|
||||
end
|
||||
rescue Timeout::Error => e
|
||||
assert false, "Timed out to handle SIGINT!\nLog: #{log}\nBacktrace:\n#{e.full_message(highlight: false)}\n----"
|
||||
ensure
|
||||
status = Process.wait2(pid).last
|
||||
assert status.success?, "Unknown failure with exit status #{status}\nLog: #{log}\n----"
|
||||
|
|
Loading…
Add table
Reference in a new issue