mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 18:16:42 +00:00
[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:
parent
11044de3dc
commit
6f4ddefe5b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user