[libc-commits] [libc] [libc] Properly clear out errno in tests that check its value. (PR #131650)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Mon Mar 17 10:49:47 PDT 2025
vonosmas 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`.
https://github.com/llvm/llvm-project/pull/131650
More information about the libc-commits
mailing list