[lldb][test] TestFrameVarDILGlobalVariableLookup: skip for older DWARF versions

Test fails on the DWARFv2 and DWARFv5 macOS bot with:
```
07:00:39  FAIL: test_frame_var (TestFrameVarDILGlobalVariableLookup.TestFrameVarDILGlobalVariableLookup)
07:00:39  ----------------------------------------------------------------------
07:00:39  Traceback (most recent call last):
07:00:39    File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 156, in wrapper
07:00:39      return func(*args, **kwargs)
07:00:39    File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/frame/var-dil/basics/GlobalVariableLookup/TestFrameVarDILGlobalVariableLookup.py", line 48, in test_frame_var
07:00:39      self.expect_var_path("ExtStruct::static_inline", value="16")
07:00:39    File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2599, in expect_var_path
07:00:39      value_check.check_value(self, eval_result, str(eval_result))
07:00:39    File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 302, in check_value
07:00:39      test_base.assertSuccess(val.GetError())
07:00:39    File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2607, in assertSuccess
07:00:39      self.fail(self._formatMessage(msg, "'{}' is not success".format(error)))
07:00:39  AssertionError: '<user expression 0>:1:1: use of undeclared identifier 'ExtStruct::static_inline'
07:00:39     1 | ExtStruct::static_inline
07:00:39       | ^' is not success
07:00:39  Config=arm64-/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/lldb-build/bin/clang
```

Possibly something to do with accelerator table differences between the versions.
This commit is contained in:
Michael Buch
2025-10-27 10:11:45 +00:00
parent 9a39076d39
commit c40b690475

View File

@@ -19,6 +19,7 @@ class TestFrameVarDILGlobalVariableLookup(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipIf(macos_version=["<", "15.0"], archs=["arm64", "arm64e"])
@expectedFailureAll(dwarf_version=["<", "5"])
def test_frame_var(self):
self.build()
lldbutil.run_to_source_breakpoint(