[Lldb-commits] [lldb] [lldb-dap][test] Let tests run under both stdio and server adapter modes (PR #227435)

Yao Qi via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 30 12:46:42 PDT 2026


================
@@ -75,27 +75,17 @@ def close_log():
         self.addTearDownHook(close_log)
 
     def __create_default_debug_adapter(self):
-        self.assertFalse(hasattr(self, "adapter"), "A default adapter already exists.")
-
-        if self.run_as_server:
-            self.adapter = self.create_server_debug_adapter(
-                DebugAdapterOptions(cwd=self.getBuildDir()),
-                connection="listen://localhost:0",
-                connection_timeout=10,
-            )
-        else:
-            self.adapter = self.create_stdio_debug_adapter(
-                DebugAdapterOptions(cwd=self.getBuildDir())
-            )
+        self.assertFalse(hasattr(self, "_adapter"), "A default adapter already exists.")
----------------
qiyao wrote:

Is change `.adapter` to `._adapter` related to this PR?

https://github.com/llvm/llvm-project/pull/227435


More information about the lldb-commits mailing list