[Lldb-commits] [lldb] [lldb-dap] Report exit status message in lldb-dap, same as lldb cli (PR #89405)
Miro Bucko via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 22 09:59:11 PDT 2024
================
@@ -4,10 +4,30 @@
import dap_server
import lldbdap_testcase
+import psutil
+from collections import deque
from lldbsuite.test import lldbutil
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
+def get_subprocess_pid(process_name):
+ queue = deque([psutil.Process(os.getpid())])
+ while queue:
+ process = queue.popleft()
+ if process.name() == process_name:
+ return process.pid
+ queue.extend(process.children())
----------------
mbucko wrote:
The lldb-server is not a direct subprocess of these tests. It's actually llvm-lit -> lldb-dap -> lldb-server. And also, lldb-dap has already been renamed once.
https://github.com/llvm/llvm-project/pull/89405
More information about the lldb-commits
mailing list