[Lldb-commits] [lldb] 5c19723 - [lldb-dap] Fix broken tests with commanEscapePrefix="" (#137384)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 25 13:07:36 PDT 2025
Author: Ely Ronnen
Date: 2025-04-25T13:07:34-07:00
New Revision: 5c197236ed7eea010a4697706e2472145a7c0c61
URL: https://github.com/llvm/llvm-project/commit/5c197236ed7eea010a4697706e2472145a7c0c61
DIFF: https://github.com/llvm/llvm-project/commit/5c197236ed7eea010a4697706e2472145a7c0c61.diff
LOG: [lldb-dap] Fix broken tests with commanEscapePrefix="" (#137384)
* Fix broken tests that use commanEscapePrefix="", in my case
`TestDAP_stackTraceMissingModule.test_missingModule`
Added:
Modified:
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.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 0f8a84461c9e7..40bdcf99e5b09 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
@@ -860,7 +860,7 @@ def request_launch(
args_dict["enableAutoVariableSummaries"] = enableAutoVariableSummaries
args_dict["enableSyntheticChildDebugging"] = enableSyntheticChildDebugging
args_dict["displayExtendedBacktrace"] = displayExtendedBacktrace
- if commandEscapePrefix:
+ if commandEscapePrefix is not None:
args_dict["commandEscapePrefix"] = commandEscapePrefix
command_dict = {"command": "launch", "type": "request", "arguments": args_dict}
response = self.send_recv(command_dict)
More information about the lldb-commits
mailing list