diff options
| author | Hood Chatham <roberthoodchatham@gmail.com> | 2024-10-16 12:22:14 +0200 |
|---|---|---|
| committer | Hood Chatham <roberthoodchatham@gmail.com> | 2024-10-16 12:22:14 +0200 |
| commit | 476ea45c68223e4b2f9674d20f1aff8dd52fe1fb (patch) | |
| tree | 2a1e644e2bde3b2275b77c073f40d52dfb68520d | |
| parent | 9618da7c9995a673af4841149ba2d1f53b69dd92 (diff) | |
| download | rust-476ea45c68223e4b2f9674d20f1aff8dd52fe1fb.tar.gz rust-476ea45c68223e4b2f9674d20f1aff8dd52fe1fb.zip | |
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 https://github.com/rust-lang/rust/issues/131738
| -rw-r--r-- | tests/ui/backtrace/dylib-dep.rs | 1 | ||||
| -rw-r--r-- | tests/ui/backtrace/line-tables-only.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/backtrace/dylib-dep.rs b/tests/ui/backtrace/dylib-dep.rs index fcd1f92e28e..a41931ad548 100644 --- a/tests/ui/backtrace/dylib-dep.rs +++ b/tests/ui/backtrace/dylib-dep.rs @@ -9,6 +9,7 @@ //@ ignore-musl musl doesn't support dynamic libraries (at least when the original test was written). //@ needs-unwind //@ compile-flags: -g -Copt-level=0 -Cstrip=none -Cforce-frame-pointers=yes +//@ ignore-emscripten Requires custom symbolization code //@ aux-crate: dylib_dep_helper=dylib-dep-helper.rs //@ aux-crate: auxiliary=dylib-dep-helper-aux.rs //@ run-pass diff --git a/tests/ui/backtrace/line-tables-only.rs b/tests/ui/backtrace/line-tables-only.rs index 044f59e483a..6624c71e184 100644 --- a/tests/ui/backtrace/line-tables-only.rs +++ b/tests/ui/backtrace/line-tables-only.rs @@ -10,6 +10,7 @@ //@ compile-flags: -Cstrip=none -Cdebuginfo=line-tables-only //@ ignore-android FIXME #17520 //@ ignore-fuchsia Backtraces not symbolized +//@ ignore-emscripten Requires custom symbolization code //@ needs-unwind //@ aux-build: line-tables-only-helper.rs |
