[libc-commits] [PATCH] D75487: [libc] [UnitTest] Add Matchers

Alex Brachet via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Mar 2 15:53:49 PST 2020


abrachet created this revision.
abrachet added reviewers: sivachandra, gchatelet, PaulkaToast.
Herald added subscribers: tschuett, MaskRay, mgorny.

This patch adds gtest-like matchers and `EXPECT|ASSERT_THAT` macros. It also adds matchers `Succeeds` and `Fails` and has examples using these in test/src/signal/sigaddset_test.cpp.


https://reviews.llvm.org/D75487

Files:
  libc/test/src/signal/sigaddset_test.cpp
  libc/utils/UnitTest/CMakeLists.txt
  libc/utils/UnitTest/Matchers.h
  libc/utils/UnitTest/Test.cpp
  libc/utils/UnitTest/Test.h
  libc/utils/testutils/CMakeLists.txt
  libc/utils/testutils/StreamWrapper.cpp
  libc/utils/testutils/StreamWrapper.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75487.247739.patch
Type: text/x-patch
Size: 10853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200302/c58991b5/attachment.bin>


More information about the libc-commits mailing list