Browse Source

Added comment for failed parseDouble test cases with RandomX.

rx
Just Wonder 5 years ago
parent
commit
cc9fac4ff6
  1. 3
      src/test/util_tests.cpp

3
src/test/util_tests.cpp

@ -500,6 +500,9 @@ BOOST_AUTO_TEST_CASE(test_ParseDouble) @@ -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));
}

Loading…
Cancel
Save