Skip to content

Commit 476ea45

Browse files
committed
Emscripten: Xfail backtrace ui tests
It is possible to link libunwind and use the normal backtrace code, but it fails to symbolize stack traces. I investigated and could get the list of instruction pointers and symbol names, but I'm not sure how to use the dwarf info to map from instruction pointer to source location. In any case, fixing this is probably not a high priority. See rust-lang#131738
1 parent 9618da7 commit 476ea45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/ui/backtrace/dylib-dep.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//@ ignore-musl musl doesn't support dynamic libraries (at least when the original test was written).
1010
//@ needs-unwind
1111
//@ compile-flags: -g -Copt-level=0 -Cstrip=none -Cforce-frame-pointers=yes
12+
//@ ignore-emscripten Requires custom symbolization code
1213
//@ aux-crate: dylib_dep_helper=dylib-dep-helper.rs
1314
//@ aux-crate: auxiliary=dylib-dep-helper-aux.rs
1415
//@ run-pass

tests/ui/backtrace/line-tables-only.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//@ compile-flags: -Cstrip=none -Cdebuginfo=line-tables-only
1111
//@ ignore-android FIXME #17520
1212
//@ ignore-fuchsia Backtraces not symbolized
13+
//@ ignore-emscripten Requires custom symbolization code
1314
//@ needs-unwind
1415
//@ aux-build: line-tables-only-helper.rs
1516

0 commit comments

Comments
 (0)