Skip to content

Commit

Permalink
io: ignore SplitByUtf8BoundaryIfWindows test on miri (#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 committed Feb 26, 2023
1 parent e23c6f3 commit d44b1ca
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 d44b1ca

Please sign in to comment.