mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-02 00:00:11 +02:00
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:
@@ -176,6 +176,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(miri, ignore)]
|
||||||
fn test_splitter() {
|
fn test_splitter() {
|
||||||
let data = str::repeat("█", MAX_BUF);
|
let data = str::repeat("█", MAX_BUF);
|
||||||
let mut wr = super::SplitByUtf8BoundaryIfWindows::new(TextMockWriter);
|
let mut wr = super::SplitByUtf8BoundaryIfWindows::new(TextMockWriter);
|
||||||
@@ -189,6 +190,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(miri, ignore)]
|
||||||
fn test_pseudo_text() {
|
fn test_pseudo_text() {
|
||||||
// In this test we write a piece of binary data, whose beginning is
|
// 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
|
// text though. We then validate that even in this corner case buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user