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.
This commit is contained in:
Alice Ryhl
2023-02-26 21:44:44 +00:00
committed by GitHub
parent e23c6f3935
commit d44b1ca9c8
+2
View File
@@ -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);
@@ -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