We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ERROR_EXIT_CODE
1 parent 6e61a1c commit ef56675Copy full SHA for ef56675
src/librustdoc/doctest.rs
@@ -836,8 +836,7 @@ fn run_test(
836
match result {
837
Err(e) => return (duration, Err(TestFailure::ExecutionError(e))),
838
Ok(out) => {
839
- // FIXME: use test::ERROR_EXIT_CODE once public
840
- if langstr.should_panic && out.status.code() != Some(101) {
+ if langstr.should_panic && out.status.code() != Some(test::ERROR_EXIT_CODE) {
841
return (duration, Err(TestFailure::UnexpectedRunPass));
842
} else if !langstr.should_panic && !out.status.success() {
843
return (duration, Err(TestFailure::ExecutionFailure(out)));
0 commit comments