[libc-commits] [libc] [libc][test] adds errno clearer test fixture, gtest-style errno and fp except assertions (PR #91608)
Michael Flanders via libc-commits
libc-commits at lists.llvm.org
Fri May 10 16:51:44 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) \
----------------
Flandini wrote:
Made the changes in 56e8d886106025434eb0289963469600859ebc1d. I've also changed all the other macros with both `EXPECT` and `EXCEPT` in the identifier. After doing this, there was a name collision with `EXPECT_FP_EXCEPTION(exception)` we were previously using. I changed this to `EXPECT_FP_EXCEPTION_HAPPENED(exception)` and changed all uses in the tests, so it's a large commit.
https://github.com/llvm/llvm-project/pull/91608
More information about the libc-commits
mailing list