File tree Expand file tree Collapse file tree 10 files changed +11
-9
lines changed Expand file tree Collapse file tree 10 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 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
55use std:: io:: prelude:: * ;
66use tempfile:: NamedTempFile ;
Original file line number Diff line number Diff line change 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
55use tempfile:: NamedTempFile ;
66use tokio:: fs:: File ;
Original file line number Diff line number Diff line change 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) ]
45use std as tokio;
Original file line number Diff line number Diff line change 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
45use tokio:: runtime:: Runtime ;
56use 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)
4949fn 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)
118117fn 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)
155153fn drop_tasks_in_context ( ) {
156154 static SUCCESS : AtomicBool = AtomicBool :: new ( false ) ;
157155
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11#![ warn( rust_2018_idioms) ]
22#![ cfg( all( feature = "full" , not( tokio_wasi) ) ) ]
3+ #![ cfg( not( miri) ) ] // Miri doesn't support epoll_wait
34
45use tokio:: io:: { AsyncReadExt , AsyncWriteExt } ;
56use tokio:: net:: { TcpListener , TcpStream } ;
Original file line number Diff line number Diff line change 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) ]
67use 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)
110110async 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)
182181async fn async_send_recv_unbounded ( ) {
183182 let ( tx, mut rx) = mpsc:: unbounded_channel ( ) ;
184183
Original file line number Diff line number Diff 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
177178async fn multithreaded ( ) {
178179 use futures:: stream:: { self , StreamExt } ;
179180 use std:: sync:: Arc ;
Original file line number Diff line number Diff line change 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+
35use std:: future:: Future ;
46use std:: pin:: Pin ;
57use std:: task:: { Context , Poll } ;
You can’t perform that action at this time.
0 commit comments