mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-12 05:31:14 +00:00
Added comment for failed parseDouble test cases with RandomX.
This commit is contained in:
parent
f6eb6a36ff
commit
cc9fac4ff6
@ -500,6 +500,9 @@ BOOST_AUTO_TEST_CASE(test_ParseDouble)
|
|||||||
std::string teststr(test_bytes, sizeof(test_bytes));
|
std::string teststr(test_bytes, sizeof(test_bytes));
|
||||||
BOOST_CHECK(!ParseDouble(teststr, &n)); // no embedded NULs
|
BOOST_CHECK(!ParseDouble(teststr, &n)); // no embedded NULs
|
||||||
// Overflow and underflow
|
// 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));
|
||||||
BOOST_CHECK(!ParseDouble("1e10000", nullptr));
|
BOOST_CHECK(!ParseDouble("1e10000", nullptr));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user