catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Add WORKING_DIRECTORY to CatchAddTests.cmake commands
- Commit
44900d5371a7595cc43316725f00f7ff41bfc1b7- Author
- Rémy Salim ·
- Committer
- Martin Hořeňovský
- Parents
7c75ecaef441
Changes
contrib/CatchAddTests.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/CatchAddTests.cmake b/contrib/CatchAddTests.cmake index ceab0529..18286b71 100644 --- a/contrib/CatchAddTests.cmake +++ b/contrib/CatchAddTests.cmake @@ -36,6 +36,7 @@ execute_process( COMMAND ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" ${spec} --list-test-names-only OUTPUT_VARIABLE output RESULT_VARIABLE result + WORKING_DIRECTORY "${TEST_WORKING_DIR}" ) # Catch --list-test-names-only reports the number of tests, so 0 is... surprising if(${result} EQUAL 0) @@ -57,6 +58,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