Skip to content

Commit 5db97ea

Browse files
committed
test: remove duplicated test
`test_atomic_accesses` in `guest_memory.rs` is exactly the same as `test_atomic_accesses` in `mmap.rs`, so delete the former. Signed-off-by: Patrick Roy <[email protected]>
1 parent 5f1a341 commit 5db97ea

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/guest_memory.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -829,16 +829,6 @@ mod tests {
829829
.is_ok());
830830
}
831831

832-
#[cfg(feature = "backend-mmap")]
833-
#[test]
834-
fn test_atomic_accesses() {
835-
let addr = GuestAddress(0x1000);
836-
let mem = GuestMemoryMmap::from_ranges(&[(addr, 0x1000)]).unwrap();
837-
let bad_addr = addr.unchecked_add(0x1000);
838-
839-
crate::bytes::tests::check_atomic_accesses(mem, addr, bad_addr);
840-
}
841-
842832
#[cfg(feature = "backend-mmap")]
843833
#[cfg(target_os = "linux")]
844834
#[test]

0 commit comments

Comments
 (0)