Skip to content

Commit 1a87553

Browse files
committed
better way to ignore tests in Miri
1 parent 754c4a4 commit 1a87553

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ interpreted program or test suite after the second `--`. For example, `cargo
7979
miri run -- -Zmiri-disable-validation` runs the program without validation of
8080
basic type invariants and without checking the aliasing of references.
8181

82-
When running code via `cargo miri`, the `miri` config flag is set. You can
83-
use this to exclude test cases that will fail under Miri because they do things
82+
When compiling code via `cargo miri`, the `miri` config flag is set. You can
83+
use this to ignore test cases that will fail under Miri because they do things
8484
Miri does not support:
8585

8686
```rust
87-
#[cfg(not(miri))]
8887
#[test]
88+
#[cfg_attr(miri, ignore)]
8989
fn does_not_work_on_miri() {
9090
std::thread::spawn(|| println!("Hello Thread!"))
9191
.join()

0 commit comments

Comments
 (0)