2018-05-17 07:22:42 +02:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <cpp-utils/system/get_total_memory.h>
|
|
|
|
|
|
|
|
using cpputils::system::get_total_memory;
|
|
|
|
|
|
|
|
TEST(GetTotalMemoryTest, DoesntCrash) {
|
|
|
|
get_total_memory();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST(GetTotalMemoryTest, IsNotZero) {
|
2023-07-08 23:48:59 +02:00
|
|
|
const uint64_t mem = get_total_memory();
|
2018-05-17 07:22:42 +02:00
|
|
|
EXPECT_LT(UINT64_C(0), mem);
|
|
|
|
}
|