[libc-commits] [PATCH] D122363: [libc][obvious] only test FILE on working platforms

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Mar 24 10:19:53 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6d8ce42825ec: [libc][obvious] only test FILE on working platforms (authored by michaelrj).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122363

Files:
  libc/test/src/__support/File/CMakeLists.txt


Index: libc/test/src/__support/File/CMakeLists.txt
===================================================================
--- libc/test/src/__support/File/CMakeLists.txt
+++ libc/test/src/__support/File/CMakeLists.txt
@@ -1,3 +1,8 @@
+if(NOT (TARGET libc.src.__support.threads.mutex))
+  # Not all platforms have a mutex implementation. If mutex is unvailable,
+  # we just skip everything about files.
+  return()
+endif()
 
 add_libc_unittest(
   file_test


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122363.417973.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220324/b5785703/attachment.bin>


More information about the libc-commits mailing list