mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	fix warning in extras/CatchAddTests.cmake
- don't warn on zero return code of --list-reporters - previously return code was the number of reporters (#1410, #1146) - as of 2c06ee9 return code is zero on success
This commit is contained in:
		@@ -55,11 +55,7 @@ execute_process(
 | 
				
			|||||||
  RESULT_VARIABLE reporters_result
 | 
					  RESULT_VARIABLE reporters_result
 | 
				
			||||||
  WORKING_DIRECTORY "${TEST_WORKING_DIR}"
 | 
					  WORKING_DIRECTORY "${TEST_WORKING_DIR}"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
if(${reporters_result} EQUAL 0)
 | 
					if(NOT ${reporters_result} EQUAL 0)
 | 
				
			||||||
  message(WARNING
 | 
					 | 
				
			||||||
    "Test executable '${TEST_EXECUTABLE}' contains no reporters!\n"
 | 
					 | 
				
			||||||
  )
 | 
					 | 
				
			||||||
elseif(${reporters_result} LESS 0)
 | 
					 | 
				
			||||||
  message(FATAL_ERROR
 | 
					  message(FATAL_ERROR
 | 
				
			||||||
    "Error running test executable '${TEST_EXECUTABLE}':\n"
 | 
					    "Error running test executable '${TEST_EXECUTABLE}':\n"
 | 
				
			||||||
    "  Result: ${reporters_result}\n"
 | 
					    "  Result: ${reporters_result}\n"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user