[libc-commits] [libc] 4e6c30c - [libc] Add a separate algorithm_test.

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Mon Jul 4 06:57:00 PDT 2022


Author: Tue Ly
Date: 2022-07-04T13:56:35Z
New Revision: 4e6c30c8354f1b0565f4e9ce25faa105b251e861

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

LOG: [libc] Add a separate algorithm_test.

Differential Revision: https://reviews.llvm.org/D128994

Added: 
    

Modified: 
    libc/test/src/string/memory_utils/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/test/src/string/memory_utils/CMakeLists.txt b/libc/test/src/string/memory_utils/CMakeLists.txt
index df481ee15a6df..c3c30eb07fa3f 100644
--- a/libc/test/src/string/memory_utils/CMakeLists.txt
+++ b/libc/test/src/string/memory_utils/CMakeLists.txt
@@ -4,7 +4,6 @@ add_libc_unittest(
     libc_string_unittests
   SRCS
     address_test.cpp
-    # algorithm_test.cpp
     backend_test.cpp
     elements_test.cpp
     memory_access_test.cpp
@@ -18,3 +17,19 @@ add_libc_unittest(
     libc.src.__support.CPP.array
     libc.src.__support.CPP.array_ref
 )
+
+if(NOT LLVM_LIBC_FULL_BUILD)
+# Disabling this unittest in fullbuild mode as #include<sstream> is pulling an
+# incomplete pthread implementation from llvm-libc.
+add_libc_unittest(
+  algorithm_test
+  SUITE
+    libc_string_unittests
+  SRCS
+    algorithm_test.cpp
+  DEPENDS
+    libc.src.string.memory_utils.memory_utils
+    libc.src.__support.CPP.array
+    libc.src.__support.CPP.array_ref
+)
+endif()


        


More information about the libc-commits mailing list