[Lldb-commits] [lldb] b767b05 - [lldb][tests] TestPreferredName.py: Fix for older compilers
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 24 05:33:24 PDT 2023
Author: Michael Buch
Date: 2023-04-24T08:33:07-04:00
New Revision: b767b050414399940f8d7f96e4564a1e5c84879f
URL: https://github.com/llvm/llvm-project/commit/b767b050414399940f8d7f96e4564a1e5c84879f
DIFF: https://github.com/llvm/llvm-project/commit/b767b050414399940f8d7f96e4564a1e5c84879f.diff
LOG: [lldb][tests] TestPreferredName.py: Fix for older compilers
This only works as of D145803, where we re-point the
`DW_AT_type` based on existence of `[[clang::preferred_name]]`
Added:
Modified:
lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
Removed:
################################################################################
diff --git a/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py b/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
index ce8be32099711..9c3f0e6a05229 100644
--- a/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
+++ b/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
@@ -11,6 +11,7 @@
class TestPreferredName(TestBase):
+ @skipIf(compiler="clang", compiler_version=['<', '16.0'])
def test_frame_var(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp"))
@@ -26,6 +27,7 @@ def test_frame_var(self):
self.expect("frame variable varChar", substrs=["Bar<char>"])
self.expect("frame variable varFooInt", substrs=["Foo<BarInt>"])
+ @skipIf(compiler="clang", compiler_version=['<', '16.0'])
def test_expr(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp"))
More information about the lldb-commits
mailing list