Skip to content

Commit

Permalink
Upgrade to Catch2 3.7.1 (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Dec 15, 2024
1 parent 2ad3875 commit 2864a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Checks:
-clang-diagnostic-pedantic,
clang-analyzer-*,
-clang-analyzer-core.uninitialized.UndefReturn,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-optin.cplusplus.UninitializedObject,
-clang-analyzer-optin.portability.UnixAPI,
-clang-analyzer-unix.Malloc,
Expand Down
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ if(BUILD_TESTING)
fetchcontent_declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.7.0
GIT_TAG v3.7.1
CMAKE_ARGS
)
fetchcontent_makeavailable(Catch2)
Expand Down Expand Up @@ -214,10 +214,6 @@ if(BUILD_TESTING)
${CMAKE_CURRENT_SOURCE_DIR}/test/include
)
target_link_libraries(SleipnirTest PRIVATE Sleipnir Catch2::Catch2WithMain)
if(NOT CMAKE_TOOLCHAIN_FILE)
# https://github.com/catchorg/Catch2/issues/2873
catch_discover_tests(SleipnirTest PROPERTIES SKIP_RETURN_CODE 4)
endif()
endif()

# Build examples and example tests
Expand Down Expand Up @@ -255,10 +251,6 @@ if(BUILD_EXAMPLES)
${example}Test
PRIVATE Sleipnir Catch2::Catch2WithMain
)
if(NOT CMAKE_TOOLCHAIN_FILE)
# https://github.com/catchorg/Catch2/issues/2873
catch_discover_tests(${example}Test PROPERTIES SKIP_RETURN_CODE 4)
endif()
endif()
endforeach()
endif()
Expand Down

0 comments on commit 2864a21

Please sign in to comment.