[libc-commits] [libc] 6f4ddef - [libc] Remove extraneous ASSERT_ERRNO_* macro definitions (#132812)

via libc-commits libc-commits at lists.llvm.org
Mon Mar 24 12:25:47 PDT 2025


Author: Roland McGrath
Date: 2025-03-24T12:25:43-07:00
New Revision: 6f4ddefe5b8c1ac61b692613b5b10ecaec1f2066

URL: https://github.com/llvm/llvm-project/commit/6f4ddefe5b8c1ac61b692613b5b10ecaec1f2066
DIFF: https://github.com/llvm/llvm-project/commit/6f4ddefe5b8c1ac61b692613b5b10ecaec1f2066.diff

LOG: [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.

Added: 
    

Modified: 
    libc/test/UnitTest/ZxTest.h

Removed: 
    


################################################################################
diff  --git a/libc/test/UnitTest/ZxTest.h b/libc/test/UnitTest/ZxTest.h
index 0881902d62b3b..ac616dbcb03f0 100644
--- a/libc/test/UnitTest/ZxTest.h
+++ b/libc/test/UnitTest/ZxTest.h
@@ -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


        


More information about the libc-commits mailing list