Skip to content

Commit d44b1ca

Browse files
authored
io: ignore SplitByUtf8BoundaryIfWindows test on miri (#5507)
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.
1 parent e23c6f3 commit d44b1ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tokio/src/io/stdio_common.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ mod tests {
176176
}
177177

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

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

0 commit comments

Comments
 (0)