[Lldb-commits] [lldb] 52882de - [lldb][test] TestCPP20Standard.py: make it a libc++ test

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue May 2 04:39:11 PDT 2023


Author: Michael Buch
Date: 2023-05-02T07:38:53-04:00
New Revision: 52882de0e641487329c9e093a90ea3dad01842c8

URL: https://github.com/llvm/llvm-project/commit/52882de0e641487329c9e093a90ea3dad01842c8
DIFF: https://github.com/llvm/llvm-project/commit/52882de0e641487329c9e093a90ea3dad01842c8.diff

LOG: [lldb][test] TestCPP20Standard.py: make it a libc++ test

We just want to test whether the language switch works.
This is easier to control for libc++, since for bots building
the tests against libstdc++ we might not have the necessary
`<compare>` header available currently.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lang/cpp/standards/cpp20/Makefile b/lldb/test/API/lang/cpp/standards/cpp20/Makefile
index 4f79c0a900c3a..ec2f8d171f49a 100644
--- a/lldb/test/API/lang/cpp/standards/cpp20/Makefile
+++ b/lldb/test/API/lang/cpp/standards/cpp20/Makefile
@@ -1,3 +1,4 @@
+USE_LIBCPP := 1
 CXX_SOURCES := main.cpp
 CXXFLAGS_EXTRAS := -std=c++20
 

diff  --git a/lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py b/lldb/test/API/lang/cpp/standards/cpp20/TestCPP20Standard.py
index 017e621fd06e5..4c305f32b08bb 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):
+    @add_test_categories(["libc++"])
     @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_cpp20(self):
         """


        


More information about the lldb-commits mailing list