[libc-commits] [PATCH] D156940: [libc] Use ASSERT_DEATH for EXPECT_DEATH under Fuchsia zxtest
Roland McGrath via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Aug 2 14:24:49 PDT 2023
mcgrathr planned changes to this revision.
mcgrathr added a comment.
In D156940#4555479 <https://reviews.llvm.org/D156940#4555479>, @abrachet wrote:
> I'm guessing because you called it `FUNC` that llvm-libc's unittest framework takes a callable object and not an expression like gtest.
Correct.
> Should we also wrap this like `[&]{ ASSERT_DEATH(FUNC, SIG); }()` so EXPECT_DEATH can be used in function with returns non void?
Good idea.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156940/new/
https://reviews.llvm.org/D156940
More information about the libc-commits
mailing list