]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: Allow an extra pthread_kill frame in backtrace tests
authorMark Wielaard <mark@klomp.org>
Wed, 4 Aug 2021 19:01:27 +0000 (21:01 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 5 Aug 2021 10:24:05 +0000 (12:24 +0200)
commit9aee0992d6e6ec4cce2c015d8da4b61022c6f6dd
tree720927e2bc67813d89127fb5f7c2de4720e19636
parent72a6f9d6f4280a50631b475e620f9c7858d9f4b5
tests: Allow an extra pthread_kill frame in backtrace tests

glibc 2.34 calls pthread_kill from the raise function. Before raise
directly called the (tg)kill syscall. So allow pthread_kill to be the
first frame in a backtrace where raise is expected. Also change some
asserts to fprintf plus abort to make it more clear why the testcase
fails.

https://sourceware.org/bugzilla/show_bug.cgi?id=28190

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/backtrace.c