diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6075df8..e20aaaa 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -8,7 +8,7 @@ if (NOT Catch2_FOUND) FetchContent_Declare( Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git - GIT_TAG v2.13.9) + GIT_TAG v3.5.3) FetchContent_MakeAvailable(Catch2) @@ -35,7 +35,7 @@ add_executable( target_include_directories(unit_tests PUBLIC ${CATCH_MODULE_PATH}) target_link_libraries( unit_tests - PRIVATE Catch2::Catch2 + PRIVATE Catch2::Catch2WithMain PRIVATE cppzmq PRIVATE ${CMAKE_THREAD_LIBS_INIT} ) diff --git a/tests/buffer.cpp b/tests/buffer.cpp index da8a514..9db2e9a 100644 --- a/tests/buffer.cpp +++ b/tests/buffer.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_CPP17 diff --git a/tests/codec_multipart.cpp b/tests/codec_multipart.cpp index a5cb1e8..f43edff 100644 --- a/tests/codec_multipart.cpp +++ b/tests/codec_multipart.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_CPP11 diff --git a/tests/context.cpp b/tests/context.cpp index ade5ade..76964a6 100644 --- a/tests/context.cpp +++ b/tests/context.cpp @@ -1,4 +1,4 @@ -#include +#include #include #if (__cplusplus >= 201703L) diff --git a/tests/message.cpp b/tests/message.cpp index a841413..23718bd 100644 --- a/tests/message.cpp +++ b/tests/message.cpp @@ -1,5 +1,4 @@ -#define CATCH_CONFIG_MAIN -#include +#include #include #if defined(ZMQ_CPP11) diff --git a/tests/multipart.cpp b/tests/multipart.cpp index 7d92b97..c201592 100644 --- a/tests/multipart.cpp +++ b/tests/multipart.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_HAS_RVALUE_REFS diff --git a/tests/recv_multipart.cpp b/tests/recv_multipart.cpp index cf99855..5a068d4 100644 --- a/tests/recv_multipart.cpp +++ b/tests/recv_multipart.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_CPP11 diff --git a/tests/send_multipart.cpp b/tests/send_multipart.cpp index 1f23823..cc0b41d 100644 --- a/tests/send_multipart.cpp +++ b/tests/send_multipart.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_CPP11 diff --git a/tests/socket.cpp b/tests/socket.cpp index cebee4b..b6f227d 100644 --- a/tests/socket.cpp +++ b/tests/socket.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_CPP11 #include diff --git a/tests/socket_ref.cpp b/tests/socket_ref.cpp index 7658658..6da39b0 100644 --- a/tests/socket_ref.cpp +++ b/tests/socket_ref.cpp @@ -1,4 +1,4 @@ -#include +#include #include #ifdef ZMQ_CPP11 diff --git a/tests/testutil.hpp b/tests/testutil.hpp index 6c371de..f282083 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -1,6 +1,6 @@ #pragma once -#include +#include #include #if defined(ZMQ_CPP11) diff --git a/tests/utilities.cpp b/tests/utilities.cpp index 30238a6..694d091 100644 --- a/tests/utilities.cpp +++ b/tests/utilities.cpp @@ -1,4 +1,4 @@ -#include +#include #include #if defined(ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)