Merge pull request #1050

f5d03bb tests: block reward: disable 64-bit-only tests on 32-bit systems (redfish)
This commit is contained in:
Riccardo Spagni 2016-09-10 15:14:12 +02:00
commit baa6d9afbc
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ 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_size, fails_on_huge_median_size)
{
#if !defined(NDEBUG)
@ -153,6 +154,7 @@ namespace
ASSERT_DEATH(do_test(huge_size - 2, huge_size), "");
#endif
}
#endif // __x86_64__
//--------------------------------------------------------------------------------------------------------------------
class block_reward_and_last_block_sizes : public ::testing::Test