mirror of
https://github.com/gperftools/gperftools
synced 2025-02-07 07:01:43 +00:00
[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:
parent
6aecbbdb6b
commit
b569be106c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user