Skip to content

Commit 67a29a5

Browse files
committed
Copy a bunch of test ignores from backtrace-debuginfo.rs
1 parent 91ed7a6 commit 67a29a5

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

tests/ui/alloc-error/alloc-error-backtrace.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
//@ run-pass
2+
// We disable tail merging here because it can't preserve debuginfo and thus
3+
// potentially breaks the backtraces. Also, subtle changes can decide whether
4+
// tail merging succeeds, so the test might work today but fail tomorrow due to a
5+
// seemingly completely unrelated change.
6+
// Unfortunately, LLVM has no "disable" option for this, so we have to set
7+
// "enable" to 0 instead.
8+
9+
//@ compile-flags:-g -Copt-level=0 -Cllvm-args=-enable-tail-merge=0
10+
//@ compile-flags:-Cforce-frame-pointers=yes
11+
//@ compile-flags:-Cstrip=none
212
//@ ignore-android FIXME #17520
313
//@ needs-subprocess
4-
//@ ignore-openbsd no support for libbacktrace without filename
5-
//@ ignore-fuchsia Backtraces not symbolized
6-
//@ compile-flags:-g
7-
//@ compile-flags:-Cstrip=none
14+
//@ ignore-fuchsia Backtrace not symbolized, trace different line alignment
15+
//@ ignore-ios needs the `.dSYM` files to be moved to the device
16+
//@ ignore-tvos needs the `.dSYM` files to be moved to the device
17+
//@ ignore-watchos needs the `.dSYM` files to be moved to the device
18+
//@ ignore-visionos needs the `.dSYM` files to be moved to the device
19+
20+
// FIXME(#117097): backtrace (possibly unwinding mechanism) seems to be different on at least
21+
// `i686-mingw` (32-bit windows-gnu)? cc #128911.
22+
//@ ignore-windows-gnu
23+
//@ ignore-backends: gcc
824

925
use std::alloc::{Layout, handle_alloc_error};
1026
use std::process::Command;

0 commit comments

Comments
 (0)