diff options
author | aycabta <aycabta@gmail.com> | 2021-08-10 06:54:08 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-08-11 14:08:45 +0900 |
commit | 7b10f55354331e2807eb86cd99321558e727ff0d (patch) | |
tree | cc35a75bf4026da0117250d46a78e8cb2351088e | |
parent | 7319b1fa2cb18758a65f57ebf1bd9097ebd1220e (diff) | |
download | ruby-7b10f55354331e2807eb86cd99321558e727ff0d.tar.gz |
Break immediately if assertions finished
-rw-r--r-- | test/readline/test_readline.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 44eb0a33c2..3661aace15 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -541,9 +541,11 @@ module BasetestReadline 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 |