[Lldb-commits] [lldb] [lldb-dap] Adding additional asserts to unit tests. (PR #140107)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu May 15 13:15:33 PDT 2025
================
@@ -487,115 +453,36 @@ def cleanup():
response = self.dap_server.request_launch(
program,
- args=args,
- cwd=cwd,
- env=env,
stopOnEntry=stopOnEntry,
- disableASLR=disableASLR,
- disableSTDIO=disableSTDIO,
- shellExpandArguments=shellExpandArguments,
- trace=trace,
- initCommands=initCommands,
- preRunCommands=preRunCommands,
- stopCommands=stopCommands,
- exitCommands=exitCommands,
- terminateCommands=terminateCommands,
- sourcePath=sourcePath,
- debuggerRoot=debuggerRoot,
- launchCommands=launchCommands,
- sourceMap=sourceMap,
- runInTerminal=runInTerminal,
- postRunCommands=postRunCommands,
- enableAutoVariableSummaries=enableAutoVariableSummaries,
- displayExtendedBacktrace=displayExtendedBacktrace,
- enableSyntheticChildDebugging=enableSyntheticChildDebugging,
- commandEscapePrefix=commandEscapePrefix,
- customFrameFormat=customFrameFormat,
- customThreadFormat=customThreadFormat,
+ **kwargs,
)
if expectFailure:
return response
-
if not (response and response["success"]):
self.assertTrue(
response["success"],
"launch failed (%s)" % (response["body"]["error"]["format"]),
)
+ if stopOnEntry:
+ self.dap_server.wait_for_stopped(timeout)
+
return response
def build_and_launch(
self,
program,
- args=None,
- cwd=None,
- env=None,
- stopOnEntry=False,
- disableASLR=False,
- disableSTDIO=False,
- shellExpandArguments=False,
- trace=False,
- initCommands=None,
- preRunCommands=None,
- stopCommands=None,
- exitCommands=None,
- terminateCommands=None,
- sourcePath=None,
- debuggerRoot=None,
- sourceInitFile=False,
- runInTerminal=False,
- disconnectAutomatically=True,
- postRunCommands=None,
+ /,
----------------
JDevlieghere wrote:
What's this? Could this use `*args, **kwargs`?
https://github.com/llvm/llvm-project/pull/140107
More information about the lldb-commits
mailing list