mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
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:
@@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user