Skip to content

Commit 67e7d72

Browse files
committed
chore: test more features with Miri
1 parent bd93557 commit 67e7d72

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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

tokio/src/process/unix/orphan.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)