rustdoc doctest: include signal number in exit status
Related to #95601
This commit is contained in:
parent
dd38eea722
commit
813b93efb0
1 changed files with 1 additions and 7 deletions
|
|
@ -1069,13 +1069,7 @@ impl Tester for Collector {
|
|||
}
|
||||
}
|
||||
TestFailure::ExecutionFailure(out) => {
|
||||
let reason = if let Some(code) = out.status.code() {
|
||||
format!("exit code {code}")
|
||||
} else {
|
||||
String::from("terminated by signal")
|
||||
};
|
||||
|
||||
eprintln!("Test executable failed ({reason}).");
|
||||
eprintln!("Test executable failed ({reason}).", reason = out.status);
|
||||
|
||||
// FIXME(#12309): An unfortunate side-effect of capturing the test
|
||||
// executable's output is that the relative ordering between the test's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue