[libc] Remove extraneous ASSERT_ERRNO_* macro definitions (#132812)

These are no longer meant to be defined in each
framework-specific header, but ZxTest.h wasn't updated.
This commit is contained in:
Roland McGrath 2025-03-24 12:25:43 -07:00 committed by GitHub
parent 11044de3dc
commit 6f4ddefe5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,14 +14,6 @@
#define WITH_SIGNAL(X) #X
// These macros are used in string unittests.
#define ASSERT_ERRNO_EQ(VAL) \
ASSERT_EQ(VAL, static_cast<int>(LIBC_NAMESPACE::libc_errno))
#define ASSERT_ERRNO_SUCCESS() \
ASSERT_EQ(0, static_cast<int>(LIBC_NAMESPACE::libc_errno))
#define ASSERT_ERRNO_FAILURE() \
ASSERT_NE(0, static_cast<int>(LIBC_NAMESPACE::libc_errno))
#ifndef EXPECT_DEATH
// Since zxtest has ASSERT_DEATH but not EXPECT_DEATH, wrap calling it
// in a lambda returning void to swallow any early returns so that this