mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Abort when total assertions failed is greater than or equal to configured value
This commit is contained in:
		 Mike Cowan
					Mike Cowan
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							4dd6e81d0f
						
					
				
				
					commit
					de06340e7d
				
			| @@ -313,7 +313,7 @@ namespace Catch { | ||||
|     } | ||||
|  | ||||
|     bool RunContext::aborting() const { | ||||
|         return m_totals.assertions.failed == static_cast<std::size_t>(m_config->abortAfter()); | ||||
|         return m_totals.assertions.failed >= static_cast<std::size_t>(m_config->abortAfter()); | ||||
|     } | ||||
|  | ||||
|     void RunContext::runCurrentTest(std::string & redirectedCout, std::string & redirectedCerr) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user