Skip to content

Commit

Permalink
Make CTest understand skipped catch2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Aug 6, 2024
1 parent f5ccfac commit 3c03066
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ function(add_test_executable TARGET)


add_executable(${TARGET} ${TARGET_ARGS})
catch_discover_tests(${TARGET} TEST_PREFIX "${TEST_PREFIX}")
catch_discover_tests(
${TARGET}
TEST_PREFIX "${TEST_PREFIX}"
PROPERTIES
SKIP_RETURN_CODE 4
)

target_link_libraries(
${TARGET}
Expand Down

0 comments on commit 3c03066

Please sign in to comment.