mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
tests: block reward: disable 64-bit-only tests on 32-bit systems
Issue #1008
This commit is contained in:
parent
afe3cce7fe
commit
f5d03bb22d
@ -138,6 +138,7 @@ namespace
|
|||||||
ASSERT_FALSE(m_block_not_too_big);
|
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_size, fails_on_huge_median_size)
|
TEST_F(block_reward_and_current_block_size, fails_on_huge_median_size)
|
||||||
{
|
{
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
@ -153,6 +154,7 @@ namespace
|
|||||||
ASSERT_DEATH(do_test(huge_size - 2, huge_size), "");
|
ASSERT_DEATH(do_test(huge_size - 2, huge_size), "");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif // __x86_64__
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------
|
||||||
class block_reward_and_last_block_sizes : public ::testing::Test
|
class block_reward_and_last_block_sizes : public ::testing::Test
|
||||||
|
Loading…
Reference in New Issue
Block a user