File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -166,18 +166,17 @@ jobs:
166166 - uses : actions-rs/toolchain@v1
167167 with :
168168 toolchain : ${{ env.nightly }}
169+ components : miri
169170 override : true
170171 - uses : Swatinem/rust-cache@v1
171- - name : Install Miri
172- run : |
173- set -e
174- rustup component add miri
175- cargo miri setup
176- rm -rf tokio/tests
177-
178172 - name : miri
179- run : cargo miri test --features rt,rt-multi-thread,sync task
173+ # Many of tests in tokio/tests and doctests use #[tokio::test] or
174+ # #[tokio::main] that calls epoll_create1 that Miri does not support.
175+ run : cargo miri test --features full --lib --no-fail-fast
180176 working-directory : tokio
177+ env :
178+ MIRIFLAGS : -Zmiri-disable-isolation -Zmiri-tag-raw-pointers
179+
181180 san :
182181 name : san
183182 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ pub(crate) mod test {
280280 drop ( signal_guard) ;
281281 }
282282
283+ #[ cfg_attr( miri, ignore) ] // Miri does not support epoll.
283284 #[ test]
284285 fn does_not_register_signal_if_queue_empty ( ) {
285286 let signal_driver = IoDriver :: new ( ) . and_then ( SignalDriver :: new) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments