mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
parent
4f21bb72ff
commit
9688891868
@ -295,6 +295,7 @@ namespace Catch {
|
|||||||
|
|
||||||
Totals deltaTotals;
|
Totals deltaTotals;
|
||||||
deltaTotals.testCases.failed = 1;
|
deltaTotals.testCases.failed = 1;
|
||||||
|
deltaTotals.assertions.failed = 1;
|
||||||
m_reporter->testCaseEnded( TestCaseStats( testInfo,
|
m_reporter->testCaseEnded( TestCaseStats( testInfo,
|
||||||
deltaTotals,
|
deltaTotals,
|
||||||
std::string(),
|
std::string(),
|
||||||
|
@ -407,3 +407,9 @@ TEST_CASE( "has printf", "" ) {
|
|||||||
// This can cause problems as, currently, stdout itself is not redirect - only the cout (and cerr) buffer
|
// This can cause problems as, currently, stdout itself is not redirect - only the cout (and cerr) buffer
|
||||||
printf( "spanner" );
|
printf( "spanner" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE( "null deref", "[.][failing][!nonportable]" ) {
|
||||||
|
CHECK( false );
|
||||||
|
int *x = NULL;
|
||||||
|
*x = 1;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user