Skip to content

Commit 22ea9d9

Browse files
committed
[lldb-dap][test] fix not supported error.
1 parent 402c376 commit 22ea9d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lldb/test/API/tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ def test_supported_capability_x86_arch(self):
9090
len(breakpoint_ids), len(bp_lines), "expect correct number of breakpoints"
9191
)
9292
self.continue_to_breakpoints(breakpoint_ids)
93-
is_supported = self.dap_server.get_capability("supportsStepInTargetsRequest")
93+
94+
try:
95+
is_supported = self.dap_server.get_capability(
96+
"supportsStepInTargetsRequest"
97+
)
98+
except dap_server.NotSupportedError:
99+
is_supported = False
94100

95101
self.assertEqual(
96102
is_supported,

0 commit comments

Comments
 (0)