]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests/run-sysroot.sh: Avoid testing output that depends on LZMA support
authorAaron Merey <amerey@redhat.com>
Thu, 11 Jul 2024 23:30:41 +0000 (19:30 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 11 Jul 2024 23:30:41 +0000 (19:30 -0400)
commit39e962f063b5e8b9c602017c8bc79f03f31873bb
tree380d31a8cccf743053ca69f21fc62fd56a7cff22
parent38635004386c7814bd81e00f756f6f2a3f7a5612
tests/run-sysroot.sh: Avoid testing output that depends on LZMA support

run-sysroot.sh checks whether a backtrace generated by eu-stack contains
symbol names found in binaries under a test sysroot.  Two frames in
the backtrace contain symbol names that must be read from .gnu_debugdata.

However this section can only be read if elfutils was built with LZMA
support.  If not, then the symbol names will be absent from the
backtrace.

Test the eu-stack output with these 2 frames removed in order to prevent
a test failure when LZMA support is missing.

Signed-off-by: Aaron Merey <amerey@redhat.com>
tests/run-sysroot.sh