[Lldb-commits] [lldb] 39bce77 - [lldb][test] TestConstStaticIntegralMember.py: XFAIL on Darwin for older compiler verions
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 8 03:59:41 PST 2024
Author: Michael Buch
Date: 2024-11-08T11:59:08Z
New Revision: 39bce77bd6cdb334810ed95249683484e44c1165
URL: https://github.com/llvm/llvm-project/commit/39bce77bd6cdb334810ed95249683484e44c1165
DIFF: https://github.com/llvm/llvm-project/commit/39bce77bd6cdb334810ed95249683484e44c1165.diff
LOG: [lldb][test] TestConstStaticIntegralMember.py: XFAIL on Darwin for older compiler verions
Follow-up to https://github.com/llvm/llvm-project/pull/111859. Prior
to this PR we would never run these tests with DWARFv5 on older Clang
versions (since default wasn't DWARFv5 on macOS until recently). The
patch explicitly started running some of these tests with DWARFv5.
These were failing on the macOS matrix bot (with Clang-15/Clang-17).
```
======================================================================
FAIL: test_inline_static_members_dwarf5_dsym (TestConstStaticIntegralMember.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1769, in test_method
return attrvalue(self)
File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py", line 150, in test_inline_static_members_dwarf5
self.check_inline_static_members("-gdwarf-5")
File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py", line 129, in check_inline_static_members
self.check_global_var("A::int_val", "const int", "1")
File "/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py", line 118, in check_global_var
self.assertGreaterEqual(len(var_list), 1)
AssertionError: 0 not greater than or equal to 1
```
Added:
Modified:
lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
Removed:
################################################################################
diff --git a/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py b/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
index cb01c7fc3612ce..1584d48e8e2d70 100644
--- a/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
+++ b/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
@@ -146,6 +146,7 @@ def check_inline_static_members(self, flags):
@skipIfWindows
# On linux this passes due to the manual index
@expectedFailureDarwin(debug_info=no_match(["dsym"]))
+ @expectedFailureDarwin(debug_info=["dsym"], compiler=["clang"], compiler_version=["<", "19.0"])
def test_inline_static_members_dwarf5(self):
self.check_inline_static_members("-gdwarf-5")
@@ -199,6 +200,7 @@ def check_shadowed_static_inline_members(self, flags):
@skipIfWindows
# On linux this passes due to the manual index
@expectedFailureDarwin(debug_info=no_match(["dsym"]))
+ @expectedFailureDarwin(debug_info=["dsym"], compiler=["clang"], compiler_version=["<", "19.0"])
def test_shadowed_static_inline_members_dwarf5(self):
self.check_shadowed_static_inline_members("-gdwarf-5")
More information about the lldb-commits
mailing list