libcryfs/test/cpp-utils/system/GetTotalMemoryTest.cpp
Sebastian Messmer 9ccb006f61 - Switch some CI jobs to clang 15
- Fix clang-tidy warnings from Clang 15
2023-07-08 14:48:59 -07:00

14 lines
301 B
C++

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