[all-commits] [llvm/llvm-project] b2f138: [lldb][Windows] Fix value API tests (#214237)

Nerixyz via All-commits all-commits at lists.llvm.org
Fri Aug 7 04:47:26 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2f13804c816248653c866dd2f39e83cfd475e3f
      https://github.com/llvm/llvm-project/commit/b2f13804c816248653c866dd2f39e83cfd475e3f
  Author: Nerixyz <nerixdev at outlook.de>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M lldb/test/API/python_api/value/Makefile
    M lldb/test/API/python_api/value/TestValueAPI.py
    M lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
    M lldb/test/API/python_api/value/change_values/main.c

  Log Message:
  -----------
  [lldb][Windows] Fix value API tests (#214237)

This removes the XFAILs for the value API tests.

- For `lldb/test/API/python_api/value/TestValueAPI.py`, we need to pass
`/debug:symtab` to the linker to get a symbol table. Symbols are
"hidden" by default. PDB works around this in the publics stream. For
DWARF, we need `/debug:symtab`. An alternative is to use `/debug:dwarf`
which also enables this.
- For
`lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py`
there were two issues. First, the stdout wasn't available when we
stopped at a breakpoint. Adding a `fflush(stdout)` fixes this.
Secondly, the breakpoint was created where the inputs to `printf` were
already evaluated. I added another assignment where we set the
breakpoint.

The added `fflush` might also help with this being flakey on Linux
(#26026).

Closes #25146



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list