diff options
author | Michael Jones <michaelrj@google.com> | 2024-10-31 15:56:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 15:56:58 -0700 |
commit | 3af87d4c5709fb7498e5adf75ec07e6528b14e1a (patch) | |
tree | 62fef02c462cd7489fcafae48cda84cd53cbd16e | |
parent | cf3464bbb796d492bcd4e764ada945304e0c874f (diff) | |
download | llvm-3af87d4c5709fb7498e5adf75ec07e6528b14e1a.zip llvm-3af87d4c5709fb7498e5adf75ec07e6528b14e1a.tar.gz llvm-3af87d4c5709fb7498e5adf75ec07e6528b14e1a.tar.bz2 |
[libc] Remove asm-generic includes from tests (#114479)
We shouldn't be including headers directly from asm-generic for macros.
It's safer to get those through the correct primary header where
possible (e.g. fcntl instead of asm-generic/fcntl).
For our public headers we may need to include the asm-generic
headers instead of defining all the macros ourselves, but that's
something for a followup PR.
-rw-r--r-- | libc/test/src/search/hsearch_test.cpp | 1 | ||||
-rw-r--r-- | libc/test/src/sys/mman/linux/mlock_test.cpp | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/libc/test/src/search/hsearch_test.cpp b/libc/test/src/search/hsearch_test.cpp index f7d9479..01805d8f 100644 --- a/libc/test/src/search/hsearch_test.cpp +++ b/libc/test/src/search/hsearch_test.cpp @@ -15,7 +15,6 @@ #include "src/search/hsearch.h" #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" -#include <asm-generic/errno-base.h> TEST(LlvmLibcHsearchTest, CreateTooLarge) { using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails; diff --git a/libc/test/src/sys/mman/linux/mlock_test.cpp b/libc/test/src/sys/mman/linux/mlock_test.cpp index 804038a68..c6e4592 100644 --- a/libc/test/src/sys/mman/linux/mlock_test.cpp +++ b/libc/test/src/sys/mman/linux/mlock_test.cpp @@ -23,8 +23,6 @@ #include "test/UnitTest/LibcTest.h" #include "test/UnitTest/Test.h" -#include <asm-generic/errno-base.h> -#include <asm-generic/mman.h> #include <linux/capability.h> #include <sys/mman.h> #include <sys/resource.h> |