[Lldb-commits] [lldb] [lldb-dap] fix executable substitution in tests (PR #179685)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 4 07:15:25 PST 2026


https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/179685

This patch fixes the `lldb-dap` executable substitution in tests, which was not done before.

>From fd1e723dc5e49886d3be412ee4693dd7e73ee823 Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Wed, 4 Feb 2026 15:14:19 +0000
Subject: [PATCH] [lldb-dap] fix executable substitution in tests

---
 lldb/test/Shell/helper/toolchain.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lldb/test/Shell/helper/toolchain.py b/lldb/test/Shell/helper/toolchain.py
index 66664561a249d..5803ecb8d96c1 100644
--- a/lldb/test/Shell/helper/toolchain.py
+++ b/lldb/test/Shell/helper/toolchain.py
@@ -167,7 +167,9 @@ def use_lldb_substitutions(config):
             unresolved="ignore",
         ),
         "lldb-test",
-        "lldb-dap",
+        ToolSubst(
+            "%lldb-dap", command=FindTool("lldb-dap"), extra_args=[], unresolved="fatal"
+        ),
         ToolSubst(
             "%build", command="'" + sys.executable + "'", extra_args=build_script_args
         ),



More information about the lldb-commits mailing list