mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	Add WORKING_DIRECTORY to CatchAddTests.cmake commands
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							b601b7faca
						
					
				
				
					commit
					863cc6a155
				
			@@ -36,6 +36,7 @@ execute_process(
 | 
			
		||||
  COMMAND ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" ${spec} --list-tests --verbosity quiet
 | 
			
		||||
  OUTPUT_VARIABLE output
 | 
			
		||||
  RESULT_VARIABLE result
 | 
			
		||||
  WORKING_DIRECTORY "${TEST_WORKING_DIR}"
 | 
			
		||||
)
 | 
			
		||||
if(NOT ${result} EQUAL 0)
 | 
			
		||||
  message(FATAL_ERROR
 | 
			
		||||
@@ -52,6 +53,7 @@ execute_process(
 | 
			
		||||
  COMMAND ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" ${spec} --list-reporters
 | 
			
		||||
  OUTPUT_VARIABLE reporters_output
 | 
			
		||||
  RESULT_VARIABLE reporters_result
 | 
			
		||||
  WORKING_DIRECTORY "${TEST_WORKING_DIR}"
 | 
			
		||||
)
 | 
			
		||||
if(${reporters_result} EQUAL 0)
 | 
			
		||||
  message(WARNING
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user