[Lldb-commits] [lldb] 5e70460 - Revert "[lldb-dap] Don't make stopOnAttach the default in attach tests"
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue May 6 19:52:20 PDT 2025
Author: Jonas Devlieghere
Date: 2025-05-06T19:52:00-07:00
New Revision: 5e70460d0155aacbd926f97a7c059de009b6e22d
URL: https://github.com/llvm/llvm-project/commit/5e70460d0155aacbd926f97a7c059de009b6e22d
DIFF: https://github.com/llvm/llvm-project/commit/5e70460d0155aacbd926f97a7c059de009b6e22d.diff
LOG: Revert "[lldb-dap] Don't make stopOnAttach the default in attach tests"
This reverts commit 69a0af35a5860156836e9e295ecef9de3474db11 as it's
timing out on the bots.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py
lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
index e0ce92256fac0..e10342b72f4f0 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
@@ -592,7 +592,7 @@ def request_attach(
attachCommands=None,
terminateCommands=None,
coreFile=None,
- stopOnAttach=False,
+ stopOnAttach=True,
postRunCommands=None,
sourceMap=None,
gdbRemotePort=None,
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
index e4be91744fddc..958c7268c0c72 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
@@ -340,7 +340,7 @@ def attach(
exitCommands=None,
attachCommands=None,
coreFile=None,
- stopOnAttach=False,
+ stopOnAttach=True,
disconnectAutomatically=True,
terminateCommands=None,
postRunCommands=None,
diff --git a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py
index e0ec87bd9a8d8..741c011a3d692 100644
--- a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py
+++ b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py
@@ -53,7 +53,7 @@ def test_by_pid(self):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
- self.attach(pid=self.process.pid, stopOnAttach=True)
+ self.attach(pid=self.process.pid)
self.set_and_hit_breakpoint(continueToExit=True)
@skipIfNetBSD # Hangs on NetBSD as well
@@ -71,7 +71,7 @@ def test_by_name(self):
popen = self.spawnSubprocess(program, [pid_file_path])
lldbutil.wait_for_file_on_target(self, pid_file_path)
- self.attach(program=program, stopOnAttach=True)
+ self.attach(program=program)
self.set_and_hit_breakpoint(continueToExit=True)
@skipUnlessDarwin
@@ -91,7 +91,7 @@ def test_by_name_waitFor(self):
),
)
self.spawn_thread.start()
- self.attach(program=program, stopOnAttach=True, waitFor=True)
+ self.attach(program=program, waitFor=True)
self.set_and_hit_breakpoint(continueToExit=True)
@skipIfNetBSD # Hangs on NetBSD as well
@@ -133,7 +133,6 @@ def test_commands(self):
terminateCommands = ["expr 4+2"]
self.attach(
program=program,
- stopOnAttach=True,
attachCommands=attachCommands,
initCommands=initCommands,
preRunCommands=preRunCommands,
@@ -202,7 +201,6 @@ def test_terminate_commands(self):
terminateCommands = ["expr 4+2"]
self.attach(
program=program,
- stopOnAttach=True,
attachCommands=attachCommands,
terminateCommands=terminateCommands,
disconnectAutomatically=False,
diff --git a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
index 12fba1133b95b..7250e67ebcd8c 100644
--- a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
+++ b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
@@ -79,9 +79,7 @@ def test_by_port(self):
port, " Failed to read the port number from debug server pipe"
)
- self.attach(
- program=program, stopOnAttach=True, gdbRemotePort=port, sourceInitFile=True
- )
+ self.attach(program=program, gdbRemotePort=port, sourceInitFile=True)
self.set_and_hit_breakpoint(continueToExit=True)
self.process.terminate()
@@ -103,7 +101,6 @@ def test_by_port_and_pid(self):
response = self.attach(
program=program,
pid=pid,
- stopOnAttach=True,
gdbRemotePort=port,
sourceInitFile=True,
expectFailure=True,
@@ -123,11 +120,7 @@ def test_by_invalid_port(self):
port = 0
response = self.attach(
- program=program,
- stopOnAttach=True,
- gdbRemotePort=port,
- sourceInitFile=True,
- expectFailure=True,
+ program=program, gdbRemotePort=port, sourceInitFile=True, expectFailure=True
)
if not (response and response["success"]):
self.assertFalse(
@@ -151,11 +144,7 @@ def test_by_illegal_port(self):
)
response = self.attach(
- program=program,
- stopOnAttach=True,
- gdbRemotePort=port,
- sourceInitFile=True,
- expectFailure=True,
+ program=program, gdbRemotePort=port, sourceInitFile=True, expectFailure=True
)
if not (response and response["success"]):
self.assertFalse(
More information about the lldb-commits
mailing list