diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-11-28 22:35:07 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-11-28 22:35:07 -0600 |
commit | 450f1325abafaf9496bf4a59a841b8302fdaf5dc (patch) | |
tree | 788ff5a0873ca4d7f7b2bf3389b1fcd3a6f27aad | |
parent | Merge pull request #6849 (diff) | |
parent | Unit Tests: Remove block reward upper bound size checks (diff) | |
download | monero-450f1325abafaf9496bf4a59a841b8302fdaf5dc.tar.xz |
Merge pull request #6856
db70af1 Unit Tests: Remove block reward upper bound size checks (TheCharlatan)
-rw-r--r-- | tests/unit_tests/block_reward.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/unit_tests/block_reward.cpp b/tests/unit_tests/block_reward.cpp index 5f3335981..2f0ea92f3 100644 --- a/tests/unit_tests/block_reward.cpp +++ b/tests/unit_tests/block_reward.cpp @@ -138,24 +138,6 @@ namespace ASSERT_FALSE(m_block_not_too_big); } -#ifdef __x86_64__ // For 64-bit systems only, because block size is limited to size_t. - TEST_F(block_reward_and_current_block_weight, fails_on_huge_median_size) - { -#if !defined(NDEBUG) - size_t huge_size = std::numeric_limits<uint32_t>::max() + UINT64_C(2); - ASSERT_DEATH(do_test(huge_size, huge_size + 1), ""); -#endif - } - - TEST_F(block_reward_and_current_block_weight, fails_on_huge_block_weight) - { -#if !defined(NDEBUG) - size_t huge_size = std::numeric_limits<uint32_t>::max() + UINT64_C(2); - ASSERT_DEATH(do_test(huge_size - 2, huge_size), ""); -#endif - } -#endif // __x86_64__ - //-------------------------------------------------------------------------------------------------------------------- class block_reward_and_last_block_weights : public ::testing::Test { |