Skip to content

Commit

Permalink
Fix backtrace UI test when panic=abort is used
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Jun 25, 2022
1 parent 00ce472 commit 50a46b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fn expected(fn_name: &str) -> String {
format!(" backtrace::{}", fn_name)
}

#[cfg(not(panic = "abort"))]
fn contains_verbose_expected(s: &str, fn_name: &str) -> bool {
// HACK(eddyb) work around the fact that verbosely demangled stack traces
// (from `RUST_BACKTRACE=full`, or, as is the case here, panic-in-panic)
Expand Down

0 comments on commit 50a46b9

Please sign in to comment.