Skip to content

Commit 3025e2d

Browse files
committed
enable some forgotten panic tests on Windows
1 parent 8ca22e2 commit 3025e2d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test-cargo-miri/tests/test.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,15 @@ fn cargo_env() {
4848
env!("CARGO_BIN_EXE_cargo-miri-test"); // Asserts that this exists.
4949
}
5050

51-
// FIXME: Remove this `cfg` once we fix https://github.com/rust-lang/miri/issues/1059.
52-
// We cfg-gate the `should_panic` attribute and the `panic!` itself, so that the test
53-
// stdout does not depend on the target.
5451
#[test]
55-
#[cfg_attr(not(windows), should_panic(expected="Explicit panic"))]
52+
#[should_panic(expected="Explicit panic")]
5653
fn do_panic() { // In large, friendly letters :)
57-
#[cfg(not(windows))]
5854
panic!("Explicit panic from test!");
5955
}
6056

61-
// FIXME: see above
6257
#[test]
58+
#[should_panic(expected="the len is 0 but the index is 42")]
6359
#[allow(unconditional_panic)]
64-
#[cfg_attr(not(windows), should_panic(expected="the len is 0 but the index is 42"))]
6560
fn fail_index_check() {
66-
#[cfg(not(windows))]
6761
[][42]
6862
}

0 commit comments

Comments
 (0)