Skip to content

tests: fix ppc64el test failures in tst_disassemblyoutput#774

Open
re2zero wants to merge 1 commit into
KDAB:masterfrom
re2zero:fix/issue-766-ppc64el-test
Open

tests: fix ppc64el test failures in tst_disassemblyoutput#774
re2zero wants to merge 1 commit into
KDAB:masterfrom
re2zero:fix/issue-766-ppc64el-test

Conversation

@re2zero

@re2zero re2zero commented Jun 3, 2026

Copy link
Copy Markdown

Summary

  • Fix test failures on ppc64el in testDetectBranches by relaxing regex matching and handling missing branch visualisation

Changes

File Change
tests/modeltests/tst_disassemblyoutput.cpp Relax readelf regex from [0-9 a-zA-Z]+ to [^\\n]+; wrap branch visualisation check in isEmpty() guard

Context

On ppc64el, the readelf output format differs from x86_64 in the symbol table, causing the regex to fail. Additionally, not every disassembly line on ppc64el contains branch visualisation output.

Patch source: Debian powerpc porter analysis (see Debian #1129621)

Test Plan

  • Changes are limited to test code only
  • Regex relaxation is more permissive without changing capture groups
  • CI verification on ppc64el (cannot test locally)

Fixes #766

The testDetectBranches test fails on ppc64el due to two issues:

1. The regex for parsing readelf -s output uses [0-9 a-zA-Z]+ which
   is too restrictive for ppc64el output format. Use [^\n]+ instead
   to match any characters until end of line.

2. The test assumes every disassembly line contains branch
   visualisation output, which is not true on ppc64el. Wrap the
   branch visualisation check in an isEmpty() guard.

Fixes KDAB#766
@re2zero re2zero marked this pull request as ready for review June 3, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure on powerpc 64-bit little endian (ppc64el) (proposed fix attached)

1 participant