Just track whether last assertion passed directly, rather than deduce it from counts

This commit is contained in:
Phil Nash
2017-12-02 21:01:59 +03:00
parent 57c346a46d
commit dfa817ae73
2 changed files with 8 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ namespace Catch {
std::vector<SectionEndInfo> m_unfinishedSections;
std::vector<ITracker*> m_activeSections;
TrackerContext m_trackerContext;
std::size_t m_prevPassed = 0;
bool m_lastAssertionPassed = false;
bool m_shouldReportUnexpected = true;
bool m_includeSuccessfulResults;
};