Disable #[should_panic] test on Windows
We should re-enable this once https://github.com/rust-lang/miri/issues/1059 is fixed
This commit is contained in:
parent
2750f60d4f
commit
6fe89e45f4
1 changed files with 6 additions and 1 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue