Skip to content

Commit c40b690

Browse files
committed
[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.
1 parent 9a39076 commit c40b690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/test/API/commands/frame/var-dil/basics/GlobalVariableLookup/TestFrameVarDILGlobalVariableLookup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class TestFrameVarDILGlobalVariableLookup(TestBase):
1919
NO_DEBUG_INFO_TESTCASE = True
2020

2121
@skipIf(macos_version=["<", "15.0"], archs=["arm64", "arm64e"])
22+
@expectedFailureAll(dwarf_version=["<", "5"])
2223
def test_frame_var(self):
2324
self.build()
2425
lldbutil.run_to_source_breakpoint(

0 commit comments

Comments
 (0)