[libc][NFC] Switch startup tests to libc_errno.
authorSiva Chandra Reddy <sivachandra@google.com>
Mon, 13 Mar 2023 22:11:32 +0000 (22:11 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 13 Mar 2023 22:22:01 +0000 (22:22 +0000)
libc/test/integration/startup/linux/tls_test.cpp

index 76b8af0..f392610 100644 (file)
@@ -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;
 }