[libc-commits] [PATCH] D74652: [libc] Add support library for use with tests.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Feb 14 14:39:26 PST 2020


sivachandra created this revision.
sivachandra added reviewers: gchatelet, abrachet.
Herald added subscribers: libc-commits, tschuett, MaskRay, mgorny.
Herald added a project: libc-project.

We do not want tests to include standard library headers to avoid
name conflicts. This support library helps shield the test compilation
units from the standard library while still providing the flexibility to
use the standard library.

This change adds wrappers for functions `std::abort` and the unix `sleep`
functions. It also provides a simple threading utility which is a wrapper
over the C++ `std::thread` class.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74652

Files:
  libc/cmake/modules/LLVMLibCRules.cmake
  libc/utils/CMakeLists.txt
  libc/utils/testutils/CMakeLists.txt
  libc/utils/testutils/Support.h
  libc/utils/testutils/Thread.cpp
  libc/utils/testutils/Thread.h
  libc/utils/testutils/abort.cpp
  libc/utils/testutils/linux/sleep.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74652.244774.patch
Type: text/x-patch
Size: 3520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200214/9b06b987/attachment-0001.bin>


More information about the libc-commits mailing list