Small logic tweaks
diff --git a/include/internal/catch_running_test.hpp b/include/internal/catch_running_test.hpp
index 6f0ec7b..7f89ab7 100644
--- a/include/internal/catch_running_test.hpp
+++ b/include/internal/catch_running_test.hpp
@@ -55,16 +55,12 @@
}
void ranToCompletion() {
- if( m_runStatus == RanAtLeastOneSection ||
- m_runStatus == EncounteredASection ) {
- m_runStatus = RanToCompletionWithSections;
- if( m_lastSectionToRun ) {
- m_lastSectionToRun->ranToCompletion();
- m_changed = true;
- }
- }
- else {
+ if( m_runStatus != RanAtLeastOneSection && m_runStatus != EncounteredASection )
m_runStatus = RanToCompletionWithNoSections;
+ m_runStatus = RanToCompletionWithSections;
+ if( m_lastSectionToRun ) {
+ m_lastSectionToRun->ranToCompletion();
+ m_changed = true;
}
}