llvm-project/libc/test
Alex Brachet 0368997402 [libc] [UnitTest] Create death tests
Summary: 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.

Reviewers: sivachandra, gchatelet

Reviewed By: sivachandra

Subscribers: mgorny, MaskRay, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D74665
2020-02-24 17:53:43 -05:00
..
config [libc] Add Convenience syscall Template Function 2020-02-13 14:39:16 -05:00
src [libc] [UnitTest] Create death tests 2020-02-24 17:53:43 -05:00
CMakeLists.txt [libc] Add a convenience CMake rule to add testsuites. 2020-01-07 23:04:52 -08:00