Skip to content

Commit f059f7e

Browse files
committed
fix(test): exclude more File-based test cases from miri
Miri sometimes non-deterministically has its mocks for read(2)/write(2) do only partial reads/writes, which our unittests cannot deal with. See also commit 029c652 ("fix(test): do not try to read files under miri"). Mark these test cases as cfg(not(miri)). Signed-off-by: Patrick Roy <[email protected]>
1 parent 5ae6510 commit f059f7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mmap/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ mod tests {
455455

456456
#[test]
457457
#[cfg(feature = "rawfd")]
458+
#[cfg(not(miri))]
458459
fn read_to_and_write_from_mem() {
459460
use std::mem;
460461

0 commit comments

Comments
 (0)