Skip to content

Commit

Permalink
Disable #[should_panic] test on Windows
Browse files Browse the repository at this point in the history
We should re-enable this once
#1059 is fixed
  • Loading branch information
Aaron1011 committed Nov 19, 2019
1 parent 2750f60 commit 6fe89e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test-cargo-miri/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ fn num_cpus() {
assert_eq!(num_cpus::get(), 1);
}


// FIXME: Remove this `cfg` once we fix https://github.com/rust-lang/miri/issues/1059
// We cfg-gate the `should_panic` attribute and the `panic!` itself, so that the test
// stdout does not depend on the platform
#[test]
#[should_panic]
#[cfg_attr(not(windows), should_panic)]
fn do_panic() { // In large, friendly letters :)
#[cfg(not(windows))]
panic!("Explicit panic from test!");
}

0 comments on commit 6fe89e4

Please sign in to comment.