From 3847986fd2c838026b9d883bb61f2e419988c1a5 Mon Sep 17 00:00:00 2001 From: Jianzhou Zhao Date: Fri, 2 Oct 2020 22:58:30 +0000 Subject: [PATCH] Fix the test case from D88686 It seems that one buildnot RSS value is much higher after munmap than local run. --- compiler-rt/test/dfsan/munmap_release_shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/dfsan/munmap_release_shadow.c b/compiler-rt/test/dfsan/munmap_release_shadow.c index 085844d..98147dc 100644 --- a/compiler-rt/test/dfsan/munmap_release_shadow.c +++ b/compiler-rt/test/dfsan/munmap_release_shadow.c @@ -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; } -- 2.7.4