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:
Aaron Hill 2019-11-19 15:55:12 -05:00
parent 2750f60d4f
commit 6fe89e45f4
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -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!");
}