about summary refs log tree commit diff
path: root/src/test/ui/backtrace.rs
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2022-06-25 11:48:26 -0400
committerAntoni Boucher <bouanto@zoho.com>2022-06-25 11:48:26 -0400
commit50a46b92f6b09e5cab6e8b4f4683cf8518102115 (patch)
tree6fbc0f569a6ef0e70e373a0bae085dd2de307cf4 /src/test/ui/backtrace.rs
parent00ce47209dfdd8ef8871c6ec804f0e0e04d10702 (diff)
downloadrust-50a46b92f6b09e5cab6e8b4f4683cf8518102115.tar.gz
rust-50a46b92f6b09e5cab6e8b4f4683cf8518102115.zip
Fix backtrace UI test when panic=abort is used
Diffstat (limited to 'src/test/ui/backtrace.rs')
-rw-r--r--src/test/ui/backtrace.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/backtrace.rs b/src/test/ui/backtrace.rs
index c2d9e222b84..01b276d67ed 100644
--- a/src/test/ui/backtrace.rs
+++ b/src/test/ui/backtrace.rs
@@ -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)