[Lldb-commits] [lldb] [lldb-dap][test] fix not supported error. (PR #144419)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 16 12:42:17 PDT 2025


https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/144419

>From 31dc0abff52f4897f83d1405f65bf00ca0aa81cb Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Mon, 16 Jun 2025 20:33:34 +0100
Subject: [PATCH] [lldb-dap][test] fix not supported error.

---
 .../tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lldb/test/API/tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py b/lldb/test/API/tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py
index 51ccf2ccbdcad..03b79a805d341 100644
--- a/lldb/test/API/tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py
+++ b/lldb/test/API/tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py
@@ -112,7 +112,13 @@ def test_supported_capability_other_archs(self):
             len(breakpoint_ids), len(bp_lines), "expect correct number of breakpoints"
         )
         self.continue_to_breakpoints(breakpoint_ids)
-        is_supported = self.dap_server.get_capability("supportsStepInTargetsRequest")
+
+        try:
+            is_supported = self.dap_server.get_capability(
+                "supportsStepInTargetsRequest"
+            )
+        except dap_server.NotSupportedError:
+            is_supported = False
 
         self.assertEqual(
             is_supported,



More information about the lldb-commits mailing list