File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -836,8 +836,7 @@ fn run_test(
836836 match result {
837837 Err ( e) => return ( duration, Err ( TestFailure :: ExecutionError ( e) ) ) ,
838838 Ok ( out) => {
839- // FIXME: use test::ERROR_EXIT_CODE once public
840- if langstr. should_panic && out. status . code ( ) != Some ( 101 ) {
839+ if langstr. should_panic && out. status . code ( ) != Some ( test:: ERROR_EXIT_CODE ) {
841840 return ( duration, Err ( TestFailure :: UnexpectedRunPass ) ) ;
842841 } else if !langstr. should_panic && !out. status . success ( ) {
843842 return ( duration, Err ( TestFailure :: ExecutionFailure ( out) ) ) ;
Original file line number Diff line number Diff line change @@ -143,8 +143,7 @@ mod __doctest_mod {{
143143 .output()
144144 .expect(\" failed to run command\" );
145145 if should_panic {{
146- // FIXME: use test::ERROR_EXIT_CODE once public
147- if out.status.code() != Some(101) {{
146+ if out.status.code() != Some(test::ERROR_EXIT_CODE) {{
148147 eprintln!(\" Test didn't panic, but it's marked `should_panic`.\" );
149148 ExitCode::FAILURE
150149 }} else {{
You can’t perform that action at this time.
0 commit comments