Skip to content

Commit 6f4ddef

Browse files
authored
[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.
1 parent 11044de commit 6f4ddef

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

libc/test/UnitTest/ZxTest.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414

1515
#define WITH_SIGNAL(X) #X
1616

17-
// These macros are used in string unittests.
18-
#define ASSERT_ERRNO_EQ(VAL) \
19-
ASSERT_EQ(VAL, static_cast<int>(LIBC_NAMESPACE::libc_errno))
20-
#define ASSERT_ERRNO_SUCCESS() \
21-
ASSERT_EQ(0, static_cast<int>(LIBC_NAMESPACE::libc_errno))
22-
#define ASSERT_ERRNO_FAILURE() \
23-
ASSERT_NE(0, static_cast<int>(LIBC_NAMESPACE::libc_errno))
24-
2517
#ifndef EXPECT_DEATH
2618
// Since zxtest has ASSERT_DEATH but not EXPECT_DEATH, wrap calling it
2719
// in a lambda returning void to swallow any early returns so that this

0 commit comments

Comments
 (0)