From: Siva Chandra Reddy Date: Mon, 13 Mar 2023 22:11:32 +0000 (+0000) Subject: [libc][NFC] Switch startup tests to libc_errno. X-Git-Tag: upstream/17.0.6~14970 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b70f95c162634a06783081c6eda46d12cbcfd02;p=platform%2Fupstream%2Fllvm.git [libc][NFC] Switch startup tests to libc_errno. --- diff --git a/libc/test/integration/startup/linux/tls_test.cpp b/libc/test/integration/startup/linux/tls_test.cpp index 76b8af0..f392610 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; }