Skip to content

Commit 1ce2822

Browse files
committed
ignore more unsupported tests
1 parent 861484e commit 1ce2822

File tree

10 files changed

+11
-9
lines changed

10 files changed

+11
-9
lines changed

tokio/tests/fs_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![warn(rust_2018_idioms)]
22
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi does not support file operations
3-
#![cfg(not(miri))] // Miri doesn't support opening file with non-default mode (inside NamedTempFile::new)
3+
#![cfg(not(miri))] // Miri doesn't support creating file with non-default mode (inside NamedTempFile::new): https://github.com/rust-lang/miri/pull/2720
44

55
use std::io::prelude::*;
66
use tempfile::NamedTempFile;

tokio/tests/io_fill_buf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![warn(rust_2018_idioms)]
22
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi does not support file operations
3-
#![cfg(not(miri))] // Miri doesn't support opening file with non-default mode (inside NamedTempFile::new)
3+
#![cfg(not(miri))] // Miri doesn't support creating file with non-default mode (inside NamedTempFile::new): https://github.com/rust-lang/miri/pull/2720
44

55
use tempfile::NamedTempFile;
66
use tokio::fs::File;

tokio/tests/macros_rename_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support threading
2+
#![cfg(not(miri))] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
23

34
#[allow(unused_imports)]
45
use std as tokio;

tokio/tests/rt_basic.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(rust_2018_idioms)]
22
#![cfg(feature = "full")]
3+
#![cfg(not(miri))] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
34

45
use tokio::runtime::Runtime;
56
use tokio::sync::oneshot;
@@ -45,7 +46,6 @@ fn spawned_task_does_not_progress_without_block_on() {
4546
}
4647

4748
#[test]
48-
#[cfg_attr(miri, ignore)] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
4949
fn no_extra_poll() {
5050
use pin_project_lite::pin_project;
5151
use std::pin::Pin;
@@ -114,7 +114,6 @@ fn no_extra_poll() {
114114
}
115115

116116
#[test]
117-
#[cfg_attr(miri, ignore)] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
118117
fn acquire_mutex_in_drop() {
119118
use futures::future::pending;
120119
use tokio::task;
@@ -151,7 +150,6 @@ fn acquire_mutex_in_drop() {
151150
}
152151

153152
#[test]
154-
#[cfg_attr(miri, ignore)] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
155153
fn drop_tasks_in_context() {
156154
static SUCCESS: AtomicBool = AtomicBool::new(false);
157155

tokio/tests/rt_common.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![allow(clippy::needless_range_loop)]
22
#![warn(rust_2018_idioms)]
33
#![cfg(feature = "full")]
4+
#![cfg(not(miri))] // Miri doesn't support epoll_wait
45

56
// Tests to run on both current-thread & multi-thread runtime variants.
67

@@ -106,7 +107,6 @@ rt_test! {
106107

107108
#[cfg(not(target_os="wasi"))]
108109
#[test]
109-
#[cfg_attr(miri, ignore)] // Miri doesn't support epoll_wait
110110
fn block_on_async() {
111111
let rt = rt();
112112

@@ -607,7 +607,6 @@ rt_test! {
607607

608608
#[cfg(not(target_os="wasi"))] // Wasi does not support threads
609609
#[test]
610-
#[cfg_attr(miri, ignore)] // Miri doesn't support epoll_wait
611610
fn always_active_parker() {
612611
// This test it to show that we will always have
613612
// an active parker even if we call block_on concurrently

tokio/tests/rt_handle_block_on.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(rust_2018_idioms)]
22
#![cfg(feature = "full")]
3+
#![cfg(not(miri))] // Miri doesn't support epoll_wait
34

45
// All io tests that deal with shutdown is currently ignored because there are known bugs in with
56
// shutting down the io driver while concurrently registering new resources. See

tokio/tests/rt_threaded.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(rust_2018_idioms)]
22
#![cfg(all(feature = "full", not(tokio_wasi)))]
3+
#![cfg(not(miri))] // Miri doesn't support epoll_wait
34

45
use tokio::io::{AsyncReadExt, AsyncWriteExt};
56
use tokio::net::{TcpListener, TcpStream};

tokio/tests/sync_mpsc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![allow(clippy::redundant_clone)]
22
#![warn(rust_2018_idioms)]
33
#![cfg(feature = "sync")]
4+
#![cfg(not(miri))] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
45

56
#[cfg(tokio_wasm_not_wasi)]
67
use wasm_bindgen_test::wasm_bindgen_test as test;
@@ -106,7 +107,6 @@ async fn send_recv_stream_with_buffer() {
106107

107108
#[tokio::test]
108109
#[cfg(feature = "full")]
109-
#[cfg_attr(miri, ignore)] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
110110
async fn async_send_recv_with_buffer() {
111111
let (tx, mut rx) = mpsc::channel(16);
112112

@@ -178,7 +178,6 @@ async fn send_recv_unbounded() {
178178

179179
#[tokio::test]
180180
#[cfg(feature = "full")]
181-
#[cfg_attr(miri, ignore)] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
182181
async fn async_send_recv_unbounded() {
183182
let (tx, mut rx) = mpsc::unbounded_channel();
184183

tokio/tests/sync_rwlock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ async fn write_order() {
174174
// A single RwLock is contested by tasks in multiple threads
175175
#[cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support threads
176176
#[tokio::test(flavor = "multi_thread", worker_threads = 8)]
177+
#[cfg_attr(miri, ignore)] // Miri doesn't support epoll_wait
177178
async fn multithreaded() {
178179
use futures::stream::{self, StreamExt};
179180
use std::sync::Arc;

tokio/tests/task_local.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support threads
22
#![allow(clippy::declare_interior_mutable_const)]
3+
#![cfg(not(miri))] // Miri doesn't support write to event (inside mio::waker::Waker::wake)
4+
35
use std::future::Future;
46
use std::pin::Pin;
57
use std::task::{Context, Poll};

0 commit comments

Comments
 (0)