You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#79573 introduces macros for errno handling.
For unit tests, this can be further improved by using ErrnoSetterMatcher(which can clear errno properly to avoid interference with other tests).
For example,
int max_priority = LIBC_NAMESPACE::sched_get_priority_max(policy);
ASSERT_EQ(max_priority, -1);
ASSERT_EQ(libc_errno, EINVAL);