summaryrefslogtreecommitdiff
path: root/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-06-19 20:48:07 -0500
committerGitHub <noreply@github.com>2025-06-19 20:48:07 -0500
commit4f991cc99523e4bb7a0d96cee9f5c3a64bf2bc8e (patch)
tree353393b5234748f2f3425a2f246eb2589cc044a9 /lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
parent513bcf6d012f7f9483af784de8487ee04cb9971a (diff)
[lldb-dap] Make connection URLs match lldb (#144770)
Use the same scheme as ConnectionFileDescriptor::Connect and use "listen" and "accept". Addresses feedback from a Pavel in a different PR [1]. [1] https://github.com/llvm/llvm-project/pull/143628#discussion_r2152225200
Diffstat (limited to 'lldb/test/API/tools/lldb-dap/server/TestDAP_server.py')
-rw-r--r--lldb/test/API/tools/lldb-dap/server/TestDAP_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py b/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
index ed17044a220d..592a4cfb0a88 100644
--- a/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
+++ b/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
@@ -54,7 +54,7 @@ class TestDAP_server(lldbdap_testcase.DAPTestCaseBase):
Test launching a binary with a lldb-dap in server mode on a specific port.
"""
self.build()
- (_, connection) = self.start_server(connection="tcp://localhost:0")
+ (_, connection) = self.start_server(connection="listen://localhost:0")
self.run_debug_session(connection, "Alice")
self.run_debug_session(connection, "Bob")
@@ -72,7 +72,7 @@ class TestDAP_server(lldbdap_testcase.DAPTestCaseBase):
self.addTearDownHook(cleanup)
self.build()
- (_, connection) = self.start_server(connection="unix://" + name)
+ (_, connection) = self.start_server(connection="accept://" + name)
self.run_debug_session(connection, "Alice")
self.run_debug_session(connection, "Bob")
@@ -82,7 +82,7 @@ class TestDAP_server(lldbdap_testcase.DAPTestCaseBase):
Test launching a binary with lldb-dap in server mode and shutting down the server while the debug session is still active.
"""
self.build()
- (process, connection) = self.start_server(connection="tcp://localhost:0")
+ (process, connection) = self.start_server(connection="listen://localhost:0")
self.dap_server = dap_server.DebugAdapterServer(
connection=connection,
)