[libc-commits] [PATCH] D128994: [libc] Add a separate algorithm_test.

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jul 4 05:41:06 PDT 2022


gchatelet updated this revision to Diff 442074.
gchatelet added a comment.

- [reland] algorithm_test.cpp


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128994/new/

https://reviews.llvm.org/D128994

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


Index: libc/test/src/string/memory_utils/CMakeLists.txt
===================================================================
--- libc/test/src/string/memory_utils/CMakeLists.txt
+++ libc/test/src/string/memory_utils/CMakeLists.txt
@@ -4,7 +4,6 @@
     libc_string_unittests
   SRCS
     address_test.cpp
-    # algorithm_test.cpp
     backend_test.cpp
     elements_test.cpp
     memory_access_test.cpp
@@ -18,3 +17,19 @@
     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()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128994.442074.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220704/f4f9a503/attachment.bin>


More information about the libc-commits mailing list