Skip to content

Commit

Permalink
io: ignore SplitByUtf8BoundaryIfWindows test on miri (tokio-rs#5507)
Browse files Browse the repository at this point in the history
These tests take a very long time under miri, but the code they're
testing isn't unsafe, so there isn't any reason to run them under miri.
  • Loading branch information
Darksonn authored and amab8901 committed Feb 27, 2023
1 parent 3164fe6 commit 2cb0fbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokio/src/io/stdio_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ mod tests {
}

#[test]
#[cfg_attr(miri, ignore)]
fn test_splitter() {
let data = str::repeat("█", MAX_BUF);
let mut wr = super::SplitByUtf8BoundaryIfWindows::new(TextMockWriter);
Expand All @@ -189,6 +190,7 @@ mod tests {
}

#[test]
#[cfg_attr(miri, ignore)]
fn test_pseudo_text() {
// In this test we write a piece of binary data, whose beginning is
// text though. We then validate that even in this corner case buffer
Expand Down

0 comments on commit 2cb0fbf

Please sign in to comment.