Skip to content

Commit 6fe89e4

Browse files
committed
Disable #[should_panic] test on Windows
We should re-enable this once #1059 is fixed
1 parent 2750f60 commit 6fe89e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-cargo-miri/tests/test.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ fn num_cpus() {
4242
assert_eq!(num_cpus::get(), 1);
4343
}
4444

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

0 commit comments

Comments
 (0)