libcryfs/test/cpp-utils/system/GetTotalMemoryTest.cpp

14 lines
295 B
C++
Raw Normal View History

#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) {
uint64_t mem = get_total_memory();
EXPECT_LT(UINT64_C(0), mem);
}