diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2023-04-24 08:29:48 -0400 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2023-04-24 08:33:07 -0400 |
commit | b767b050414399940f8d7f96e4564a1e5c84879f (patch) | |
tree | b5c71b87244ec9ada815718d0173607127c71d7c /lldb/test | |
parent | 2eb72fa9172f99658ef8968ca66129463f360b14 (diff) | |
download | llvm-b767b050414399940f8d7f96e4564a1e5c84879f.tar.gz |
[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]]`
Diffstat (limited to 'lldb/test')
-rw-r--r-- | lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py b/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py index ce8be3209971..9c3f0e6a0522 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 @@ from lldbsuite.test import decorators 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 @@ class TestPreferredName(TestBase): 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")) |