[Lldb-commits] [lldb] [lldb] Fix expressions that involve nested structs/classes/unions. (PR #77029)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 8 04:19:12 PST 2024


DavidSpickett wrote:

One of the new tests fails on Windows:
```
FAIL: test_static_in_nested_structs_dwarf (TestNestedExpressions.NestedExpressions)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 1696, in test_method

    return attrvalue(self)

           ^^^^^^^^^^^^^^^

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\commands\expression\nested\TestNestedExpressions.py", line 44, in test_static_in_nested_structs

    self.expect_expr("A::B::C::enum_static",

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2508, in expect_expr

    value_check.check_value(self, eval_result, str(eval_result))

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 300, in check_value

    test_base.assertSuccess(val.GetError())

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2543, in assertSuccess

    self.fail(self._formatMessage(msg, "'{}' is not success".format(error)))

AssertionError: 'error: Couldn't look up symbols:

  A::B::C::enum_static

' is not success
```
But given the other issues we've had lately, it's not surprising.

I've skipped it for now - https://github.com/llvm/llvm-project/commit/ba4cf31facdaf9bb9943c057d325ff0968331e9a.

https://github.com/llvm/llvm-project/pull/77029


More information about the lldb-commits mailing list