[libc-commits] [libc] [libc][test] adds errno clearer test fixture, gtest-style errno and fp except assertions (PR #91608)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri May 10 15:49:11 PDT 2024


================
@@ -53,11 +116,42 @@ class FPExceptMatcher : public Matcher<bool> {
 } // namespace testing
 } // namespace LIBC_NAMESPACE
 
+// Matches on the FP exception flag `expected` being *equal* to FP exception
+// flag `actual`
+#define EXPECT_FP_EXCEPT_EQUAL(expected, actual)                               \
----------------
michaelrj-google wrote:

nit: I'd prefer to use `EXCEPTION_EQ` rather than `EXCEPT_EQUAL`. I find having the words `EXPECT` and `EXCEPT` in the same macro name hard to read.

https://github.com/llvm/llvm-project/pull/91608


More information about the libc-commits mailing list