From 5339516d040e96e31da1590b3450cb1aefb163c3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 00:01:17 +0000 Subject: [PATCH 1/2] build(deps): bump rust-vmm-ci from `fc4584d` to `e8117d1` Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci) from `fc4584d` to `e8117d1`. - [Commits](https://github.com/rust-vmm/rust-vmm-ci/compare/fc4584d8b805be4e8193d43d9ba6519f9a0f43a5...e8117d1504d5f292b18f90989158958a9a8365d6) --- updated-dependencies: - dependency-name: rust-vmm-ci dependency-version: e8117d1504d5f292b18f90989158958a9a8365d6 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- rust-vmm-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-vmm-ci b/rust-vmm-ci index fc4584d8..e8117d15 160000 --- a/rust-vmm-ci +++ b/rust-vmm-ci @@ -1 +1 @@ -Subproject commit fc4584d8b805be4e8193d43d9ba6519f9a0f43a5 +Subproject commit e8117d1504d5f292b18f90989158958a9a8365d6 From 8ae32ba622cf216a880fda0d0883f9119ee3e39b Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Fri, 26 Sep 2025 18:01:04 +0100 Subject: [PATCH 2/2] fix(test): do not try to read files under miri miri uses stubs for the read and write syscalls, which non-deterministically emulate partial reads/writes. The tests cannot handle this, so disable the file-based tests under miri. Signed-off-by: Patrick Roy --- src/io.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io.rs b/src/io.rs index 179aa1ea..3c338491 100644 --- a/src/io.rs +++ b/src/io.rs @@ -474,7 +474,7 @@ mod tests { } // ---- Test ReadVolatile for File ---- - #[cfg(feature = "rawfd")] + #[cfg(all(feature = "rawfd", not(miri)))] fn read_4_bytes_from_file(source: Vec, expected_output: [u8; 5]) { let mut temp_file = TempFile::new().unwrap().into_file(); temp_file.write_all(source.as_ref()).unwrap(); @@ -518,7 +518,7 @@ mod tests { for (input, output) in test_cases { read_4_bytes_to_5_byte_memory(input.clone(), output); - #[cfg(feature = "rawfd")] + #[cfg(all(feature = "rawfd", not(miri)))] read_4_bytes_from_file(input, output); } } @@ -559,7 +559,7 @@ mod tests { } // ---- Test ẂriteVolatile for File works ---- - #[cfg(feature = "rawfd")] + #[cfg(all(feature = "rawfd", not(miri)))] fn write_5_bytes_to_file(mut source: Vec) { // Test write_volatile for File works let mut temp_file = TempFile::new().unwrap().into_file(); @@ -603,7 +603,7 @@ mod tests { for (input, output) in test_cases { write_4_bytes_to_5_byte_vec(input.clone(), output); - #[cfg(feature = "rawfd")] + #[cfg(all(feature = "rawfd", not(miri)))] write_5_bytes_to_file(input); } }