Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMike Cowan2018-09-22 19:21:19 +0100
committerMartin Hořeňovský2018-09-22 22:39:08 +0200
commitde06340e7d2862bbdb55796f86a2090e915f9c19 (patch)
tree0289d5d4b14537323aaba7f8280f4aab87403b32 /include
parent4dd6e81d0f4b6f88058e7b71f3f672aa478161ef (diff)
downloadcatch3-de06340e7d2862bbdb55796f86a2090e915f9c19.tar.gz
Abort when total assertions failed is greater than or equal to configured value
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_run_context.cpp2
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) {