File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn simple2() {
1212 assert_ne ! ( 42 , 24 ) ;
1313}
1414
15- // A test that won't work on miri (tests disabling tests)
15+ // A test that won't work on miri (tests disabling tests).
1616#[ cfg( not( miri) ) ]
1717#[ test]
1818fn does_not_work_on_miri ( ) {
@@ -45,9 +45,9 @@ fn num_cpus() {
4545
4646// FIXME: Remove this `cfg` once we fix https://github.com/rust-lang/miri/issues/1059
4747// 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.
4949#[ test]
50- #[ cfg_attr( not( windows) , should_panic) ]
50+ #[ cfg_attr( not( windows) , should_panic( expected= "Explicit panic" ) ) ]
5151fn do_panic ( ) { // In large, friendly letters :)
5252 #[ cfg( not( windows) ) ]
5353 panic ! ( "Explicit panic from test!" ) ;
You can’t perform that action at this time.
0 commit comments