aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/block_reward.cpp
diff options
context:
space:
mode:
authorredfish <redfish@galactica.pw>2016-09-04 02:54:20 -0400
committerredfish <redfish@galactica.pw>2016-09-04 03:36:10 -0400
commitf5d03bb22d1b217bc455b436b703c9d75ba24c3e (patch)
treef634872b80e9636d28781106756d299672b32ad4 /tests/unit_tests/block_reward.cpp
parentMerge pull request #1041 (diff)
downloadmonero-f5d03bb22d1b217bc455b436b703c9d75ba24c3e.tar.xz
tests: block reward: disable 64-bit-only tests on 32-bit systems
Issue #1008
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/block_reward.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit_tests/block_reward.cpp b/tests/unit_tests/block_reward.cpp
index e16e2c3ec..5d93c3084 100644
--- a/tests/unit_tests/block_reward.cpp
+++ b/tests/unit_tests/block_reward.cpp
@@ -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