[libc][NFC] Add a death test API adaptation macro
authorMichael Jones <michaelrj@google.com>
Fri, 29 Jan 2021 00:11:35 +0000 (00:11 +0000)
committerMichael Jones <michaelrj@google.com>
Mon, 1 Feb 2021 19:19:04 +0000 (19:19 +0000)
commitc73c23f2a91f5a454d782da9918e2160cfe66087
treebce2989b487df34c3a7a77e7a656a6ea83cd81b7
parent5b2626ea87f48eab011b616a96540b9e83c7ca88
[libc][NFC] Add a death test API adaptation macro

Fuchsia's zxtest has a slightly different death test definition, and
this macro makes our death test API work on Fuchsia.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D95648
libc/test/src/assert/assert_test.cpp
libc/test/src/fenv/enabled_exceptions_test.cpp
libc/test/src/signal/raise_test.cpp
libc/test/src/signal/sigaction_test.cpp
libc/test/src/signal/sigdelset_test.cpp
libc/test/src/signal/sigprocmask_test.cpp
libc/test/src/stdlib/abort_test.cpp
libc/utils/UnitTest/FuchsiaTest.h
libc/utils/UnitTest/LibcTest.h