[libc-commits] [PATCH] D74665: [libc] [UnitTest] Create death tests
Alex Brachet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Feb 14 23:10:31 PST 2020
abrachet created this revision.
abrachet added reviewers: sivachandra, gchatelet.
Herald added subscribers: tschuett, MaskRay.
This patch adds `EXPECT_EXITS` and `EXPECT_DEATH` macros for testing exit codes and deadly signals. They are less convoluted than their analogs in GTEST and don't have matchers but just take an int for either the exit code or the signal respectively. Nor do they have any regex match against the stdout/stderr of the child process.
https://reviews.llvm.org/D74665
Files:
libc/utils/UnitTest/Test.cpp
libc/utils/UnitTest/Test.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74665.244817.patch
Type: text/x-patch
Size: 5811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200215/09a6bf5f/attachment-0001.bin>
More information about the libc-commits
mailing list