diff --git a/libc/test/src/fenv/enabled_exceptions_test.cpp b/libc/test/src/fenv/enabled_exceptions_test.cpp --- a/libc/test/src/fenv/enabled_exceptions_test.cpp +++ b/libc/test/src/fenv/enabled_exceptions_test.cpp @@ -45,6 +45,6 @@ // exception. __llvm_libc::feraiseexcept(e); }, - SIGFPE); + WITH_SIGNAL(SIGFPE)); } } diff --git a/libc/utils/UnitTest/FuchsiaTest.h b/libc/utils/UnitTest/FuchsiaTest.h --- a/libc/utils/UnitTest/FuchsiaTest.h +++ b/libc/utils/UnitTest/FuchsiaTest.h @@ -11,4 +11,6 @@ #include +#define WITH_SIGNAL(X) #X + #endif // LLVM_LIBC_UTILS_UNITTEST_FUCHSIATEST_H diff --git a/libc/utils/UnitTest/LibcTest.h b/libc/utils/UnitTest/LibcTest.h --- a/libc/utils/UnitTest/LibcTest.h +++ b/libc/utils/UnitTest/LibcTest.h @@ -273,4 +273,6 @@ return; \ } while (0) +#define WITH_SIGNAL(X) X + #endif // LLVM_LIBC_UTILS_UNITTEST_LIBCTEST_H