зеркало из https://github.com/github/ruby.git
Break immediately if assertions finished
This commit is contained in:
Родитель
7319b1fa2c
Коммит
7b10f55354
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче