[libc-commits] [PATCH] D106086: [libc] Add a new test matcher for tests raising floating point exceptions.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jul 19 22:37:16 PDT 2021


sivachandra added a comment.

In D106086#2888664 <https://reviews.llvm.org/D106086#2888664>, @mcgrathr wrote:

> For Fuchsia you should just define the new macro to continue to use zxtest's ASSERT_DEATH macro.

I have added an alternate definition in `TestHelpers.h`.

  #ifdef LLVM_LIBC_TEST_USE_FUCHSIA
  #define ASSERT_RAISES_FP_EXCEPT(func) ASSERT_DEATH(func, WITH_SIGNAL(SIGFPE))
  #else
  #define ASSERT_RAISES_FP_EXCEPT(func)
  ...
  #endif // LLVM_LIBC_TEST_USE_FUCHSIA


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106086/new/

https://reviews.llvm.org/D106086



More information about the libc-commits mailing list