[libc-commits] [libc] [libc] Properly clear out errno in tests that check its value. (PR #131650)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Mar 17 10:51:08 PDT 2025
jhuber6 wrote:
> > Couldn't we just make the macros like `EXPECT_MATH_ERRNO` or `ASSERT_ERRNO` set it after finishing?
>
> No, because we need to clear out errno before the first invocation of function-under-test, and hence before the first call to `ASSERT_ERRNO`.
And we can't do that in the test runner before we execute the unit test?
https://github.com/llvm/llvm-project/pull/131650
More information about the libc-commits
mailing list