mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-15 18:05:38 +02:00
Fixed !shouldfail
This commit is contained in:
@@ -128,6 +128,11 @@ namespace Catch {
|
||||
|
||||
|
||||
Totals deltaTotals = m_totals.delta( prevTotals );
|
||||
if( testCase.expectedToFail() && deltaTotals.testCases.passed > 0 ) {
|
||||
deltaTotals.assertions.failed++;
|
||||
deltaTotals.testCases.passed--;
|
||||
deltaTotals.testCases.failed++;
|
||||
}
|
||||
m_totals.testCases += deltaTotals.testCases;
|
||||
m_reporter->testCaseEnded( TestCaseStats( testCase,
|
||||
deltaTotals,
|
||||
|
Reference in New Issue
Block a user