You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit brings the test suite into a state where "cargo miri test
--features backend-mmap" reports all tests as passing. Some tests have
been marked with `#[cfg(not(miri))]` due to exercising operations that
miri does not support, and which cannot be reasonably mocked out (such
as creating a file-backed mmap).
Calls to `mmap` with `MAP_ANONYMOUS` have been mocked out with calls to
`std::allow::alloc_zeroed`, due to miri not supporting `mmap`.
Some tests ran into alignment issues that are not present on production
systems, presumable because the system allocator always aligns
sufficiently. Miri will not do that, and happily align everything to a
1-byte boundary. However, miri only exercises a _single_ execution path,
so it is possible that on that single execution path, everything
happened to be aligned sufficiently for a test to pass. That is why the
adjustments made in this commit might not be sufficient.
Signed-off-by: Patrick Roy <[email protected]>
0 commit comments