ruby-changes:67117
From: aycabta <ko1@a...>
Date: Wed, 11 Aug 2021 14:11:47 +0900 (JST)
Subject: [ruby-changes:67117] 7b10f55354 (master): Break immediately if assertions finished
https://git.ruby-lang.org/ruby.git/commit/?id=7b10f55354 From 7b10f55354331e2807eb86cd99321558e727ff0d Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 10 Aug 2021 06:54:08 +0900 Subject: Break immediately if assertions finished --- test/readline/test_readline.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 44eb0a3..3661aac 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -541,9 +541,11 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L541 log << c if c if log.include?('FAILED') assert false, "Should handle SIGINT correctly but raised interrupt.\nLog: #{log}\n----" + break end if log.include?('SUCCEEDED') assert false, "Should handle SIGINT correctly but exited successfully.\nLog: #{log}\n----" + break end end rescue Timeout::Error => e -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/