Abort when total assertions failed is greater than or equal to configured value

This commit is contained in:
Mike Cowan 2018-09-22 19:21:19 +01:00 committed by Martin Hořeňovský
parent 4dd6e81d0f
commit de06340e7d

View File

@ -313,7 +313,7 @@ namespace Catch {
} }
bool RunContext::aborting() const { bool RunContext::aborting() const {
return m_totals.assertions.failed == static_cast<std::size_t>(m_config->abortAfter()); return m_totals.assertions.failed >= static_cast<std::size_t>(m_config->abortAfter());
} }
void RunContext::runCurrentTest(std::string & redirectedCout, std::string & redirectedCerr) { void RunContext::runCurrentTest(std::string & redirectedCout, std::string & redirectedCerr) {