From df58f12d6cc31b56956aaeb7ea87d341417aa79e Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 26 Feb 2023 22:18:06 +0100 Subject: [PATCH] io: ignore SplitByUtf8BoundaryIfWindows test on miri 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. --- tokio/src/io/stdio_common.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio/src/io/stdio_common.rs b/tokio/src/io/stdio_common.rs index b1cc61d7ac4..06da761b858 100644 --- a/tokio/src/io/stdio_common.rs +++ b/tokio/src/io/stdio_common.rs @@ -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