mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Break immediately if assertions finished
This commit is contained in:
parent
7319b1fa2c
commit
7b10f55354
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue