mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							4f21bb72ff
						
					
				
				
					commit
					9688891868
				
			@@ -295,6 +295,7 @@ namespace Catch {
 | 
			
		||||
 | 
			
		||||
            Totals deltaTotals;
 | 
			
		||||
            deltaTotals.testCases.failed = 1;
 | 
			
		||||
            deltaTotals.assertions.failed = 1;
 | 
			
		||||
            m_reporter->testCaseEnded( TestCaseStats(   testInfo,
 | 
			
		||||
                                                        deltaTotals,
 | 
			
		||||
                                                        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
 | 
			
		||||
    printf( "spanner" );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_CASE( "null deref", "[.][failing][!nonportable]" ) {
 | 
			
		||||
    CHECK( false );
 | 
			
		||||
    int *x = NULL;
 | 
			
		||||
    *x = 1;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user