Dep/Catch2: Update to 3.15.2

Signed-off-by: luis <[email protected]>
This commit is contained in:
Shauren
2026-07-16 23:01:07 -03:00
committed by luis
parent d8ccbc037e
commit 691744c35e
7 changed files with 10 additions and 30 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ add_subdirectory(src)
include(CTest) include(CTest)
if(BUILD_TESTING) if(BUILD_TESTING)
list(APPEND CMAKE_MODULE_PATH list(APPEND CMAKE_MODULE_PATH
"${Catch2_SOURCE_DIR}/contrib") "${Catch2_SOURCE_DIR}/extras")
include(Catch) include(Catch)
add_subdirectory(tests) add_subdirectory(tests)
+1 -1
View File
@@ -48,7 +48,7 @@ if(BUILD_TESTING)
include(FetchContent) include(FetchContent)
FetchContent_Declare(Catch2 FetchContent_Declare(Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.9 GIT_TAG v3.15.2
GIT_SHALLOW 1) GIT_SHALLOW 1)
FetchContent_MakeAvailable(Catch2) FetchContent_MakeAvailable(Catch2)
endif() endif()
+1 -1
View File
@@ -55,7 +55,7 @@ argon2
catch2 catch2
https://github.com/catchorg/Catch2 https://github.com/catchorg/Catch2
Version: v2.13.0 Version: v3.15.2
CascLib (An open-source implementation of library for reading CASC storage from Blizzard games since 2014) CascLib (An open-source implementation of library for reading CASC storage from Blizzard games since 2014)
https://github.com/ladislav-zezula/CascLib https://github.com/ladislav-zezula/CascLib
+1 -1
View File
@@ -20,7 +20,7 @@ target_link_libraries(tests
PRIVATE PRIVATE
trinity-core-interface trinity-core-interface
game game
Catch2::Catch2) Catch2::Catch2WithMain)
# Link playerbot module if enabled (for Phase5 tests) # Link playerbot module if enabled (for Phase5 tests)
if(BUILD_PLAYERBOT) if(BUILD_PLAYERBOT)
+5 -5
View File
@@ -106,9 +106,9 @@ TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackablePtr]")
} }
// disable warning about invalid reinterpret_cast, test intentionally tests this // disable warning about invalid reinterpret_cast, test intentionally tests this
#ifdef __clang__ #if TRINITY_COMPILER_IS_CLANG
#pragma GCC diagnostic push #pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wreinterpret-base-class" #pragma clang diagnostic ignored "-Wreinterpret-base-class"
#endif #endif
TEST_CASE("Trinity::unique_strong_ref_ptr type casts", "[UniqueTrackablePtr]") TEST_CASE("Trinity::unique_strong_ref_ptr type casts", "[UniqueTrackablePtr]")
@@ -160,6 +160,6 @@ TEST_CASE("Trinity::unique_strong_ref_ptr type casts", "[UniqueTrackablePtr]")
} }
} }
#ifdef __clang__ #if TRINITY_COMPILER_IS_CLANG
#pragma GCC diagnostic pop #pragma clang diagnostic pop
#endif #endif
-20
View File
@@ -1,20 +0,0 @@
/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
+1 -1
View File
@@ -39,6 +39,6 @@ inline std::ostream& operator<<(std::ostream& os, std::nullopt_t)
return os; return os;
} }
#include "catch2/catch.hpp" #include <catch2/catch_all.hpp>
#endif #endif