File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn simple2() {
12
12
assert_ne ! ( 42 , 24 ) ;
13
13
}
14
14
15
- // A test that won't work on miri (tests disabling tests)
15
+ // A test that won't work on miri (tests disabling tests).
16
16
#[ cfg( not( miri) ) ]
17
17
#[ test]
18
18
fn does_not_work_on_miri ( ) {
@@ -45,9 +45,9 @@ fn num_cpus() {
45
45
46
46
// FIXME: Remove this `cfg` once we fix https://github.com/rust-lang/miri/issues/1059
47
47
// We cfg-gate the `should_panic` attribute and the `panic!` itself, so that the test
48
- // stdout does not depend on the platform
48
+ // stdout does not depend on the platform.
49
49
#[ test]
50
- #[ cfg_attr( not( windows) , should_panic) ]
50
+ #[ cfg_attr( not( windows) , should_panic( expected= "Explicit panic" ) ) ]
51
51
fn do_panic ( ) { // In large, friendly letters :)
52
52
#[ cfg( not( windows) ) ]
53
53
panic ! ( "Explicit panic from test!" ) ;
You can’t perform that action at this time.
0 commit comments