[libc-commits] [libc] [libc] Properly clear out errno in tests that check its value. (PR #131650)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Mon Mar 17 12:47:21 PDT 2025
================
@@ -15,6 +15,7 @@
using namespace LIBC_NAMESPACE::testing::ErrnoSetterMatcher;
TEST(LlvmLibcEpollCreate1Test, Basic) {
+ LIBC_NAMESPACE::libc_errno = 0;
----------------
michaelrj-google wrote:
imo we should be resetting errno at the end of tests instead of at the start. Ideally we should assume we start from a clean state.
https://github.com/llvm/llvm-project/pull/131650
More information about the libc-commits
mailing list