Fix backtrace UI test when panic=abort is used

This commit is contained in:
Antoni Boucher 2022-06-25 11:48:26 -04:00
parent 00ce47209d
commit 50a46b92f6

View File

@ -43,6 +43,7 @@ fn expected(fn_name: &str) -> String {
format!(" backtrace::{}", fn_name) format!(" backtrace::{}", fn_name)
} }
#[cfg(not(panic = "abort"))]
fn contains_verbose_expected(s: &str, fn_name: &str) -> bool { fn contains_verbose_expected(s: &str, fn_name: &str) -> bool {
// HACK(eddyb) work around the fact that verbosely demangled stack traces // HACK(eddyb) work around the fact that verbosely demangled stack traces
// (from `RUST_BACKTRACE=full`, or, as is the case here, panic-in-panic) // (from `RUST_BACKTRACE=full`, or, as is the case here, panic-in-panic)