Fix the test case from D88686
authorJianzhou Zhao <jianzhouzh@google.com>
Fri, 2 Oct 2020 22:58:30 +0000 (22:58 +0000)
committerJianzhou Zhao <jianzhouzh@google.com>
Fri, 2 Oct 2020 22:59:55 +0000 (22:59 +0000)
It seems that one buildnot RSS value is much higher after munmap than
local run.

compiler-rt/test/dfsan/munmap_release_shadow.c

index 085844d..98147dc 100644 (file)
@@ -41,7 +41,7 @@ int main(int argc, char **argv) {
   assert(after_mmap >= before + mmap_cost_kb);
   // OS does not release memory to the same level as the start of the program.
   // The assert checks the memory after munmap up to a delta.
-  const size_t delta = 5000;
-  assert(after_munmap + mmap_cost_kb <= after_mmap + delta);
+  const size_t delta = 50000;
+  assert(after_munmap + delta <= after_mmap);
   return 0;
 }