diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-06-23 22:15:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-06-23 22:15:55 +0000 |
commit | 94a62765b0d5e180e9b81280ae485cad3cb34e20 (patch) | |
tree | e8baad7cb492f5e3f0dac97da8168aec6c16b64e | |
parent | f3b7e66c5de750c61e082c6f8175a064b38114c8 (diff) | |
parent | 102323ea0b12634acc1af1e108574abfd0cf3af6 (diff) | |
download | bionic-ndk-release-r23.tar.gz |
Merge "Snap for 7485283 from e772804d1542632ba35640cb83b50f973eaed25c to ndk-release-r23" into ndk-release-r23ndk-r23cndk-r23bndk-r23ndk-release-r23
-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! } |