| 12866 | } |
| 12867 | |
| 12868 | void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) { |
| 12869 | if (m_unfinishedSections.empty()) |
| 12870 | m_activeSections.back()->fail(); |
| 12871 | else |
| 12872 | m_activeSections.back()->close(); |
| 12873 | m_activeSections.pop_back(); |
| 12874 | |
| 12875 | m_unfinishedSections.push_back(endInfo); |
| 12876 | } |
| 12877 | |
| 12878 | #if defined(CATCH_CONFIG_ENABLE_BENCHMARKING) |
| 12879 | void RunContext::benchmarkPreparing(std::string const& name) { |