Fix the test case from D88686

It seems that one buildnot RSS value is much higher after munmap than
local run.
This commit is contained in:
Jianzhou Zhao 2020-10-02 22:58:30 +00:00
parent 321986fe68
commit 3847986fd2
1 changed files with 2 additions and 2 deletions

View 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;
}