diff options
Diffstat (limited to 'tests/sys_sysinfo_test.cpp')
-rw-r--r-- | tests/sys_sysinfo_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sys_sysinfo_test.cpp b/tests/sys_sysinfo_test.cpp index ea35b4ea3..cca2f445d 100644 --- a/tests/sys_sysinfo_test.cpp +++ b/tests/sys_sysinfo_test.cpp @@ -42,4 +42,10 @@ TEST(sys_sysinfo, sysinfo) { struct sysinfo si; memset(&si, 0, sizeof(si)); ASSERT_EQ(0, sysinfo(&si)); + + ASSERT_GT(si.uptime, 10); // You're not running CTS within 10s of booting! + ASSERT_GT(uint64_t(si.totalram) * si.mem_unit, uint64_t(512 * 1024 * 1024)); + ASSERT_GE(si.totalram, si.freeram); + ASSERT_GE(si.totalswap, si.freeswap); + ASSERT_GT(si.procs, 2); // There's at least this test and init running! } |