rtprintpanic: clarify that the error is aborting the process
This commit is contained in:
parent
0d56e3eed1
commit
17b7d63fd7
4 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ macro_rules! rtprintpanic {
|
||||||
macro_rules! rtabort {
|
macro_rules! rtabort {
|
||||||
($($t:tt)*) => {
|
($($t:tt)*) => {
|
||||||
{
|
{
|
||||||
rtprintpanic!("fatal runtime error: {}\n", format_args!($($t)*));
|
rtprintpanic!("fatal runtime error: {}, aborting\n", format_args!($($t)*));
|
||||||
crate::sys::abort_internal();
|
crate::sys::abort_internal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
thread $NAME panicked at tests/fail/panic/tls_macro_const_drop_panic.rs:LL:CC:
|
thread $NAME panicked at tests/fail/panic/tls_macro_const_drop_panic.rs:LL:CC:
|
||||||
ow
|
ow
|
||||||
fatal runtime error: thread local panicked on drop
|
fatal runtime error: thread local panicked on drop, aborting
|
||||||
error: abnormal termination: the program aborted execution
|
error: abnormal termination: the program aborted execution
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
thread $NAME panicked at tests/fail/panic/tls_macro_drop_panic.rs:LL:CC:
|
thread $NAME panicked at tests/fail/panic/tls_macro_drop_panic.rs:LL:CC:
|
||||||
ow
|
ow
|
||||||
fatal runtime error: thread local panicked on drop
|
fatal runtime error: thread local panicked on drop, aborting
|
||||||
error: abnormal termination: the program aborted execution
|
error: abnormal termination: the program aborted execution
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
|
|
@ -27,6 +27,6 @@ fn main() {
|
||||||
// by QEMU in the stderr whenever a core dump happens. Remove it before the check.
|
// by QEMU in the stderr whenever a core dump happens. Remove it before the check.
|
||||||
v.strip_suffix("qemu: uncaught target signal 6 (Aborted) - core dumped\n").unwrap_or(v)
|
v.strip_suffix("qemu: uncaught target signal 6 (Aborted) - core dumped\n").unwrap_or(v)
|
||||||
})
|
})
|
||||||
.map(|v| { v.ends_with("fatal runtime error: drop of the panic payload panicked\n") })
|
.map(|v| v.ends_with("fatal runtime error: drop of the panic payload panicked, aborting\n"))
|
||||||
.unwrap_or(false));
|
.unwrap_or(false));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue