[libcxx-commits] [libcxx] eba76ec - [libc++][NFC] Precise comments in test suite setup

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 17 11:53:34 PDT 2023


Author: Louis Dionne
Date: 2023-03-17T14:53:24-04:00
New Revision: eba76ec99489be1e52c6548bc9c038f23079c715

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

LOG: [libc++][NFC] Precise comments in test suite setup

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/params.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index db4c5efc08a05..fab60df0a3a72 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -125,8 +125,8 @@ def getStdFlag(cfg, std):
                  The Standard libraries currently supported are:
                  - llvm-libc++: The 'upstream' libc++ as shipped with LLVM.
                  - apple-libc++: libc++ as shipped by Apple. This is basically like the LLVM one, but
-                                 there are a few 
diff erences like installation paths and the use of
-                                 universal dylibs.
+                                 there are a few 
diff erences like installation paths, the use of
+                                 universal dylibs and the existence of availability markup.
                  - libstdc++: The GNU C++ library typically shipped with GCC.
                  - msvc: The Microsoft implementation of the C++ Standard Library.
                 """,
@@ -236,11 +236,9 @@ def getStdFlag(cfg, std):
     for a given deployment target. For example, this is the case when testing
     availability markup, where we want to make sure that using the annotated
     facility on a deployment target that doesn't support it will fail at compile
-    time, not at runtime. This can be achieved by creating a `.compile.pass.cpp`
-    and XFAILing it for the right deployment target. If the test doesn't fail at
-    compile-time like it's supposed to, the test will XPASS. Another option is to
-    create a `.verify.cpp` test that checks for the right errors, and mark that
-    test as requiring `use_system_cxx_lib && <target>`.
+    time, not at runtime. This can be achieved by creating a `.verify.cpp` test
+    that checks for the right errors, and mark that test as requiring
+    `use_system_cxx_lib && target=<target>`.
     """,
     actions=lambda useSystem: [
       AddFeature('use_system_cxx_lib')


        


More information about the libcxx-commits mailing list