Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Catch2 3.7.1 #664

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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