We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5b8db commit 8a44cd7Copy full SHA for 8a44cd7
lldb/test/API/tools/lldb-dap/optimized/TestDAP_optimized.py
@@ -45,9 +45,14 @@ def test_optimized_variable(self):
45
self.continue_to_breakpoints(breakpoint_ids)
46
optimized_variable = self.dap_server.get_local_variable("argc")
47
48
- self.assertTrue(optimized_variable["value"].startswith("<error:"))
+ value: str = optimized_variable["value"]
49
+ self.assertTrue(
50
+ value.startswith("<error:"),
51
+ f"expect error for value: '{value}'",
52
+ )
53
error_msg = optimized_variable["$__lldb_extensions"]["error"]
54
self.assertTrue(
55
("could not evaluate DW_OP_entry_value: no parent function" in error_msg)
56
or ("variable not available" in error_msg)
57
)
58
+ self.continue_to_exit()
0 commit comments