[all-commits] [llvm/llvm-project] bafcc3: [lldb][test] Refactor and expand TestMemoryRegionD...

David Spickett via All-commits all-commits at lists.llvm.org
Thu Sep 25 02:58:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bafcc3e3b3353718b47e77618f0bb5fad7d1aa15
      https://github.com/llvm/llvm-project/commit/bafcc3e3b3353718b47e77618f0bb5fad7d1aa15
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2025-09-25 (Thu, 25 Sep 2025)

  Changed paths:
    M lldb/test/API/functionalities/gdb_remote_client/TestMemoryRegionDirtyPages.py

  Log Message:
  -----------
  [lldb][test] Refactor and expand TestMemoryRegionDirtyPages.py (#156035)

This started as me being annoyed that I got loads of this when
inspecting memory regions on Mac:
Modified memory (dirty) page list provided, 0 entries.

So I thought I should test the existing behaviour, which led me to
refactor the existing test to run the same checks on all regions.

In the process I realised that the output is not wrong. There is a
difference between knowing that no pages are dirty and not knowing
anything about dirty pages. We print that there are 0 entries so the
user knows that difference.

The test case now checks "memory region" output as well as API use.
There were also some checks only run on certain regions, like page size,
which now run for all of them.



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