Commit f07a9548 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'fix-mmap-test' into 'master'

Get the mmap test to build

See merge request !63
parents 0f9030f0 040ebf99
Pipeline #9176 failed with stages
in 2 minutes and 5 seconds
......@@ -107,12 +107,15 @@ fn fmap() {
)
).unwrap();
let size = 128;
let map = unsafe {
slice::from_raw_parts_mut(
dbg!(
crate::fmap(fd, &crate::Map {
address: 0,
offset: 0,
size: 128,
size,
flags: crate::PROT_READ | crate::PROT_WRITE
})
).unwrap() as *mut u8,
......@@ -131,7 +134,7 @@ fn fmap() {
//TODO: add msync
unsafe {
assert_eq!(dbg!(
crate::funmap(map.as_mut_ptr() as usize)
crate::funmap(map.as_mut_ptr() as usize, size)
), Ok(0));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment