Googletest export
Remove unneeded check for NULL. Note: this started as OSS PR https://github.com/google/googletest/pull/967 but changed PiperOrigin-RevId: 209819732
This commit is contained in:
		
							parent
							
								
									fdd19fe97a
								
							
						
					
					
						commit
						93d9926d27
					
				@ -2679,9 +2679,9 @@ void TestInfo::Run() {
 | 
			
		||||
      factory_, &internal::TestFactoryBase::CreateTest,
 | 
			
		||||
      "the test fixture's constructor");
 | 
			
		||||
 | 
			
		||||
  // Runs the test only if the test object was created and its
 | 
			
		||||
  // constructor didn't generate a fatal failure.
 | 
			
		||||
  if ((test != NULL) && !Test::HasFatalFailure()) {
 | 
			
		||||
  // Runs the test if the constructor didn't generate a fatal failure.
 | 
			
		||||
  // Note that the object will not be null
 | 
			
		||||
  if (!Test::HasFatalFailure()) {
 | 
			
		||||
    // This doesn't throw as all user code that can throw are wrapped into
 | 
			
		||||
    // exception handling code.
 | 
			
		||||
    test->Run();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user