test: suppress all death tests in release

This commit is contained in:
Michele Caini
2022-07-29 10:49:03 +02:00
parent 325a5dd353
commit 83ecd2d1d9
14 changed files with 45 additions and 31 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
#include <gtest/gtest.h>
#include <entt/core/memory.hpp>
#include "../common/basic_test_allocator.hpp"
#include "../common/config.h"
#include "../common/throwing_allocator.hpp"
#include "../common/throwing_type.hpp"
#include "../common/tracked_memory_resource.hpp"
@@ -57,7 +58,7 @@ TEST(NextPowerOfTwo, Functionalities) {
ASSERT_EQ(entt::next_power_of_two(std::pow(2, 16) + 1u), std::pow(2, 17));
}
TEST(NextPowerOfTwoDeathTest, Functionalities) {
ENTT_DEBUG_TEST(NextPowerOfTwoDeathTest, Functionalities) {
ASSERT_DEATH(static_cast<void>(entt::next_power_of_two((std::size_t{1u} << (std::numeric_limits<std::size_t>::digits - 1)) + 1)), "");
}