[Lldb-commits] [lldb] 5379189 - [lldb][test] TestCPP20Standard.py: skip on older compilers

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 24 09:05:34 PDT 2023


Author: Michael Buch
Date: 2023-04-24T12:05:20-04:00
New Revision: 53791896de3fcc5606c190fa4e4552383ee1dcb8

URL: https://github.com/llvm/llvm-project/commit/53791896de3fcc5606c190fa4e4552383ee1dcb8
DIFF: https://github.com/llvm/llvm-project/commit/53791896de3fcc5606c190fa4e4552383ee1dcb8.diff

LOG: [lldb][test] TestCPP20Standard.py: skip on older compilers

Requires C++20 support (at least for the spaceship operator).
Seems to work back to Clang-11

Added: 
    

Modified: 
    lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py b/lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py
index dbca9092e3abf..017e621fd06e5 100644
--- a/lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py
+++ b/lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py
@@ -4,6 +4,7 @@
 from lldbsuite.test import lldbutil
 
 class TestCPP20Standard(TestBase):
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_cpp20(self):
         """
         Tests that we can evaluate an expression in C++20 mode


        


More information about the lldb-commits mailing list