1
0
Fork 0
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:
aycabta 2021-08-10 06:54:08 +09:00
parent 7319b1fa2c
commit 7b10f55354

View file

@ -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