Skip to content

Commit

Permalink
chore: test more features with Miri
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 12, 2022
1 parent bd93557 commit 67e7d72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,17 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.nightly }}
components: miri
override: true
- uses: Swatinem/rust-cache@v1
- name: Install Miri
run: |
set -e
rustup component add miri
cargo miri setup
rm -rf tokio/tests
- name: miri
run: cargo miri test --features rt,rt-multi-thread,sync task
# Many of tests in tokio/tests and doctests use #[tokio::test] or
# #[tokio::main] that calls epoll_create1 that Miri does not support.
run: cargo miri test --features full --lib --no-fail-fast
working-directory: tokio
env:
MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-tag-raw-pointers

san:
name: san
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions tokio/src/process/unix/orphan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ pub(crate) mod test {
drop(signal_guard);
}

#[cfg_attr(miri, ignore)] // Miri does not support epoll.
#[test]
fn does_not_register_signal_if_queue_empty() {
let signal_driver = IoDriver::new().and_then(SignalDriver::new).unwrap();
Expand Down

0 comments on commit 67e7d72

Please sign in to comment.