llvm-project/libc
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
..
cmake/modules [libc] [UnitTest] Create death tests 2020-02-24 17:53:43 -05:00
config [libc] Add Initial Support for Signals 2020-02-20 14:05:34 -05:00
docs [libc] Add a README to the sub-directories under the utils directory. 2020-02-23 22:11:35 -08:00
fuzzing [libc] Lay out framework for fuzzing libc functions. 2020-02-21 19:15:46 -08:00
include [libc] Add Initial Support for Signals 2020-02-20 14:05:34 -05:00
lib [libc] Add Initial Support for Signals 2020-02-20 14:05:34 -05:00
spec [libc] Add Initial Support for Signals 2020-02-20 14:05:34 -05:00
src Remove unused variable 2020-02-21 20:48:07 -05:00
test [libc] [UnitTest] Create death tests 2020-02-24 17:53:43 -05:00
utils [libc] [UnitTest] Create death tests 2020-02-24 17:53:43 -05:00
CMakeLists.txt [libc] Lay out framework for fuzzing libc functions. 2020-02-21 19:15:46 -08:00
LICENSE.txt
README.txt

README.txt

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.