diff options
author | aycabta <aycabta@gmail.com> | 2021-08-12 07:52:23 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-08-12 07:52:39 +0900 |
commit | e5f6cd70456377f8a63b4efb2ab16928e5d1121a (patch) | |
tree | 3bcefa37e7f1cf921953c45afd5612cfec5407fd /test/readline/test_readline.rb | |
parent | 79cc566ab4cdf75f125ecf413a27d353a9756c08 (diff) |
Outer block is required to rescue Timeout::Error
Diffstat (limited to 'test/readline/test_readline.rb')
-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 215a94ec3d..802d5e7645 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -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----" |