Skip to content

Commit 226ba38

Browse files
Michael137Lukacma
authored andcommitted
[lldb][test] TestFrameVarDILGlobalVariableLookup: XFAIL on older Clang versions
Failing on macOS Clang-15 and Clang-17 bots with: ``` 07:26:20 ====================================================================== 07:26:20 FAIL: test_frame_var (TestFrameVarDILGlobalVariableLookup.TestFrameVarDILGlobalVariableLookup) 07:26:20 ---------------------------------------------------------------------- 07:26:20 Traceback (most recent call last): 07:26:20 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:26:20 return func(*args, **kwargs) 07:26:20 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:26:20 self.expect_var_path("ExtStruct::static_inline", value="16") 07:26:20 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:26:20 value_check.check_value(self, eval_result, str(eval_result)) 07:26:20 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:26:20 test_base.assertSuccess(val.GetError()) 07:26:20 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:26:20 self.fail(self._formatMessage(msg, "'{}' is not success".format(error))) 07:26:20 AssertionError: '<user expression 0>:1:1: use of undeclared identifier 'ExtStruct::static_inline' 07:26:20 1 | ExtStruct::static_inline 07:26:20 | ^' is not success ``` I suspect Clang-17 (and earlier) used DWARFv4 on macOS by default. So we would use the Apple accelerator tables, which didn't index `ExtStruct` (based on what I observed locally). We already XFAIL this test for DWARFv4, hence XFAIL it also for older Clang versions.
1 parent 6e10c24 commit 226ba38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ class TestFrameVarDILGlobalVariableLookup(TestBase):
2020

2121
@skipIf(macos_version=["<", "15.0"], archs=["arm64", "arm64e"])
2222
@expectedFailureAll(dwarf_version=["<", "5"])
23+
@expectedFailureAll(
24+
compiler="clang",
25+
compiler_version=["<", "19.0"],
26+
oslist=[lldbplatformutil.getDarwinOSTriples()],
27+
)
2328
def test_frame_var(self):
2429
self.build()
2530
lldbutil.run_to_source_breakpoint(

0 commit comments

Comments
 (0)