Skip to content

Commit 705a13e

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 39f346a commit 705a13e

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
@@ -947,16 +947,6 @@ mod tests {
947947
.is_ok());
948948
}
949949

950-
#[cfg(feature = "backend-mmap")]
951-
#[test]
952-
fn test_atomic_accesses() {
953-
let addr = GuestAddress(0x1000);
954-
let mem = GuestMemoryMmap::from_ranges(&[(addr, 0x1000)]).unwrap();
955-
let bad_addr = addr.unchecked_add(0x1000);
956-
957-
crate::bytes::tests::check_atomic_accesses(mem, addr, bad_addr);
958-
}
959-
960950
#[cfg(feature = "backend-mmap")]
961951
#[cfg(target_os = "linux")]
962952
#[test]

0 commit comments

Comments
 (0)