[libc-commits] [libc] 0b70f95 - [libc][NFC] Switch startup tests to libc_errno.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Mon Mar 13 15:22:45 PDT 2023


Author: Siva Chandra Reddy
Date: 2023-03-13T22:22:01Z
New Revision: 0b70f95c162634a06783081c6eda46d12cbcfd02

URL: https://github.com/llvm/llvm-project/commit/0b70f95c162634a06783081c6eda46d12cbcfd02
DIFF: https://github.com/llvm/llvm-project/commit/0b70f95c162634a06783081c6eda46d12cbcfd02.diff

LOG: [libc][NFC] Switch startup tests to libc_errno.

Added: 
    

Modified: 
    libc/test/integration/startup/linux/tls_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/integration/startup/linux/tls_test.cpp b/libc/test/integration/startup/linux/tls_test.cpp
index 76b8af0bb8d7f..f392610545e91 100644
--- a/libc/test/integration/startup/linux/tls_test.cpp
+++ b/libc/test/integration/startup/linux/tls_test.cpp
@@ -9,7 +9,7 @@
 #include "include/errno.h"
 #include "include/sys/mman.h"
 
-#include "src/errno/llvmlibc_errno.h"
+#include "src/errno/libc_errno.h"
 #include "src/sys/mman/mmap.h"
 #include "test/IntegrationTest/test.h"
 
@@ -28,11 +28,11 @@ TEST_MAIN(int argc, char **argv, char **envp) {
   // set in errno. Since errno is implemented using a thread
   // local var, this helps us test setting of errno and
   // reading it back.
-  ASSERT_TRUE(llvmlibc_errno == 0);
+  ASSERT_TRUE(libc_errno == 0);
   void *addr = __llvm_libc::mmap(nullptr, 0, PROT_READ,
                                  MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
   ASSERT_TRUE(addr == MAP_FAILED);
-  ASSERT_TRUE(llvmlibc_errno == EINVAL);
+  ASSERT_TRUE(libc_errno == EINVAL);
 
   return 0;
 }


        


More information about the libc-commits mailing list