mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
readme: fix running loom tests guide (#6408)
This commit is contained in:
parent
b2896feb5b
commit
bd51feac47
@ -184,9 +184,11 @@ it, `rustfmt` will update your files locally instead.
|
||||
You can run loom tests with
|
||||
```
|
||||
cd tokio # tokio crate in workspace
|
||||
LOOM_MAX_PREEMPTIONS=1 RUSTFLAGS="--cfg loom" \
|
||||
LOOM_MAX_PREEMPTIONS=1 LOOM_MAX_BRANCHES=10000 RUSTFLAGS="--cfg loom -C debug_assertions" \
|
||||
cargo test --lib --release --features full -- --test-threads=1 --nocapture
|
||||
```
|
||||
Additionally, you can also add `--cfg tokio_unstable` to the `RUSTFLAGS` environment variable to
|
||||
run loom tests that test unstable features.
|
||||
|
||||
You can run miri tests with
|
||||
```
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg(tokio_unstable)]
|
||||
|
||||
mod queue;
|
||||
mod shutdown;
|
||||
mod yield_now;
|
||||
|
Loading…
x
Reference in New Issue
Block a user