[all-commits] [llvm/llvm-project] 1962bc: [libc] [UnitTest] Add Matchers

Alex Brachet via All-commits all-commits at lists.llvm.org
Thu Mar 5 15:37:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1962bc1dfb728c6ebf44be9174d8a2a269ce0299
      https://github.com/llvm/llvm-project/commit/1962bc1dfb728c6ebf44be9174d8a2a269ce0299
  Author: Alex Brachet <alexbrachetmialot at gmail.com>
  Date:   2020-03-05 (Thu, 05 Mar 2020)

  Changed paths:
    M libc/test/src/signal/sigaddset_test.cpp
    M libc/utils/UnitTest/CMakeLists.txt
    A libc/utils/UnitTest/ErrnoSetterMatcher.h
    M libc/utils/UnitTest/Test.cpp
    M libc/utils/UnitTest/Test.h
    M libc/utils/testutils/CMakeLists.txt
    A libc/utils/testutils/StreamWrapper.cpp
    A libc/utils/testutils/StreamWrapper.h

  Log Message:
  -----------
  [libc] [UnitTest] Add Matchers

Summary: 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.

Reviewers: sivachandra, gchatelet, PaulkaToast

Reviewed By: sivachandra, PaulkaToast

Subscribers: mgorny, MaskRay, tschuett, libc-commits

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




More information about the All-commits mailing list