[stacktrace_unittest] skip "from ucontext" case when not on glibc

glibc carefully handles unwind info for signal trampoline stack frame,
so even brittle "skip N frames" case works there. But e.g. on musl it
doesn't.

So lets skip this test on non-glibc systemsfor now, until we test
things closer to how it is done by cpu profiler.
This commit is contained in:
Aliaksei Kandratsenka 2024-09-25 17:32:46 -04:00
parent 6aecbbdb6b
commit b569be106c

View File

@ -373,7 +373,7 @@ void RunTest() {
#if TEST_UCONTEXT_BITS
bool want_to_test = !skipping_ucontext;
#if !__linux__
#if !__linux__ || !defined(__GLIBC__)
// Our current "with ucontext" backtracing relies on fixed number of
// stack frames to skip. Which is brittle and actually fails on
// e.g. BSDs. There is a notable exception of generic_fp