This is a flaky test and may not test the thing it expected to verify.
E.g., it doesn't dirty the pages so the memory usage may not be reflected
on the RSS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Unfortunately, this test probably needs to be rewritten. If you want to keep this test, it would be best to fork/exec and use mmap to grab some memory, touch at least one byte in every page of the allocation, then do the GetRSS() call, then munmap the memory. That would be the best way to guarantee a stable change to the RSS that can be used to verify GetRSS is working correctly.