We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2750f60 commit 6fe89e4Copy full SHA for 6fe89e4
test-cargo-miri/tests/test.rs
@@ -42,8 +42,13 @@ fn num_cpus() {
42
assert_eq!(num_cpus::get(), 1);
43
}
44
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
49
#[test]
-#[should_panic]
50
+#[cfg_attr(not(windows), should_panic)]
51
fn do_panic() { // In large, friendly letters :)
52
+ #[cfg(not(windows))]
53
panic!("Explicit panic from test!");
54
0 commit comments