diff options
| author | Mike Cowan | 2018-09-22 19:21:19 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-09-22 22:39:08 +0200 |
| commit | de06340e7d2862bbdb55796f86a2090e915f9c19 (patch) | |
| tree | 0289d5d4b14537323aaba7f8280f4aab87403b32 | |
| parent | 4dd6e81d0f4b6f88058e7b71f3f672aa478161ef (diff) | |
| download | catch3-de06340e7d2862bbdb55796f86a2090e915f9c19.tar.gz | |
Abort when total assertions failed is greater than or equal to configured value
| -rw-r--r-- | include/internal/catch_run_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_run_context.cpp b/include/internal/catch_run_context.cpp index 7e4b689e..ffdd2ebb 100644 --- a/include/internal/catch_run_context.cpp +++ b/include/internal/catch_run_context.cpp @@ -313,7 +313,7 @@ namespace Catch { } 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) { |