[all-commits] [llvm/llvm-project] 83d159: [lldb-dap] Addressing orphaned processes in tests....

John Harrison via All-commits all-commits at lists.llvm.org
Tue Nov 4 09:05:18 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83d1599871b2bf7cf8a093c272367a141767a895
      https://github.com/llvm/llvm-project/commit/83d1599871b2bf7cf8a093c272367a141767a895
  Author: John Harrison <harjohn at google.com>
  Date:   2025-11-04 (Tue, 04 Nov 2025)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
    M lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
    M lldb/test/API/tools/lldb-dap/disconnect/TestDAP_disconnect.py
    M lldb/test/API/tools/lldb-dap/server/TestDAP_server.py

  Log Message:
  -----------
  [lldb-dap] Addressing orphaned processes in tests. (#166205)

In lldb-dap tests, we sometimes spawn subprocesses directly but do not
always correctly clean them up.

This can cause some tests, like the `TestDAP_disconnect.test_attach` to
hang and not properly respect timeouts.

To fix this, I am passing the `lldbtest.Base.spawnSubprocess` helper to
the adapter client so it can be used spawn subprocesses in a way that we
can ensure they're cleaned up.



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