The Fuchsia zxtest library has ASSERT_DEATH but not EXPECT_DEATH.
The latter may be added in the future, but for now just use the
former as substitute.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm guessing because you called it FUNC that llvm-libc's unittest framework takes a callable object and not an expression like gtest.
Should we also wrap this like [&]{ ASSERT_DEATH(FUNC, SIG); }() so EXPECT_DEATH can be used in function with returns non void?
Comment Actions
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.