summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2021-05-04 11:53:02 -0700
committergVisor bot <gvisor-bot@google.com>2021-05-04 11:55:41 -0700
commitdd3875eabecc479d83cb66828a4163c37458170e (patch)
tree4a90a1a312ba7e3f289016c4b6e8041315db5527 /test/syscalls/linux
parent2f53933752b864a20c17aab252a8bc66a3aa07bb (diff)
Increase error margin for memory accounting test.
PiperOrigin-RevId: 371963265
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/memory_accounting.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/syscalls/linux/memory_accounting.cc b/test/syscalls/linux/memory_accounting.cc
index 94aea4077..867a4513b 100644
--- a/test/syscalls/linux/memory_accounting.cc
+++ b/test/syscalls/linux/memory_accounting.cc
@@ -83,7 +83,7 @@ TEST(MemoryAccounting, AnonAccountingPreservedOnSaveRestore) {
uint64_t anon_after_alloc = ASSERT_NO_ERRNO_AND_VALUE(AnonUsageFromMeminfo());
EXPECT_THAT(anon_after_alloc,
- EquivalentWithin(anon_initial + map_bytes, 0.03));
+ EquivalentWithin(anon_initial + map_bytes, 0.04));
// We have many implicit S/R cycles from scraping /proc/meminfo throughout the
// test, but throw an explicit S/R in here as well.
@@ -91,7 +91,7 @@ TEST(MemoryAccounting, AnonAccountingPreservedOnSaveRestore) {
// Usage should remain the same across S/R.
uint64_t anon_after_sr = ASSERT_NO_ERRNO_AND_VALUE(AnonUsageFromMeminfo());
- EXPECT_THAT(anon_after_sr, EquivalentWithin(anon_after_alloc, 0.03));
+ EXPECT_THAT(anon_after_sr, EquivalentWithin(anon_after_alloc, 0.04));
}
} // namespace