Added comment for failed parseDouble test cases with RandomX.

This commit is contained in:
Just Wonder 2020-02-29 08:07:06 -08:00
parent f6eb6a36ff
commit cc9fac4ff6

View File

@ -500,6 +500,9 @@ BOOST_AUTO_TEST_CASE(test_ParseDouble)
std::string teststr(test_bytes, sizeof(test_bytes));
BOOST_CHECK(!ParseDouble(teststr, &n)); // no embedded NULs
// Overflow and underflow
// Kevacoin: TODO the following two test cases may fail when huge page
// is not enable. To enable it:
// sudo sysctl -w vm.nr_hugepages=1280
BOOST_CHECK(!ParseDouble("-1e10000", nullptr));
BOOST_CHECK(!ParseDouble("1e10000", nullptr));
}