8#include <boost/test/unit_test.hpp>
13BOOST_AUTO_TEST_SUITE(system_ram_tests)
19 BOOST_WARN_MESSAGE(
false,
"skipping total_ram: total RAM unknown");
23 BOOST_CHECK_GE(*total, 1000_MiB);
25 if constexpr (SIZE_MAX == UINT64_MAX) {
28 BOOST_CHECK_LT(*total, 10'000'000_MiB);
std::optional< size_t > GetTotalRAM()
Return the total RAM available on the current system, if detectable.
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(total_ram)