[Lldb-commits] [lldb] [NFC][lldb][lldb-dap][test] show the expected value in the error message. (PR #142030)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu May 29 14:07:24 PDT 2025
================
@@ -45,9 +45,14 @@ def test_optimized_variable(self):
self.continue_to_breakpoints(breakpoint_ids)
optimized_variable = self.dap_server.get_local_variable("argc")
- self.assertTrue(optimized_variable["value"].startswith("<error:"))
+ expected_value: str = optimized_variable["value"]
+ self.assertTrue(
+ expected_value.startswith("<error:"),
+ f"expect error for value: '{expected_value}'",
+ )
----------------
JDevlieghere wrote:
It's the _actual_ value, right, rather than the _expected_ value?
```suggestion
value: str = optimized_variable["value"]
self.assertTrue(
value.startswith("<error:"),
f"expect error for value: '{expected_value}'",
)
```
https://github.com/llvm/llvm-project/pull/142030
More information about the lldb-commits
mailing list