diff options
author | Schrodinger ZHU Yifan <yifanzhu@rochester.edu> | 2024-06-26 12:46:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 12:46:15 -0700 |
commit | 133492fe18260d4b5ce2d70ff9575fa9c911d090 (patch) | |
tree | c2da638ed62e5f74d577b01f650235c83ef6f7b1 /libc/test | |
parent | a89a54190ced6f7ded24eb3b6e5115dbe69eada8 (diff) | |
download | llvm-133492fe18260d4b5ce2d70ff9575fa9c911d090.zip llvm-133492fe18260d4b5ce2d70ff9575fa9c911d090.tar.gz llvm-133492fe18260d4b5ce2d70ff9575fa9c911d090.tar.bz2 |
[libc] add proxy header for struct_sigaction (#96224)
Diffstat (limited to 'libc/test')
-rw-r--r-- | libc/test/src/signal/CMakeLists.txt | 6 | ||||
-rw-r--r-- | libc/test/src/signal/sigaction_test.cpp | 6 | ||||
-rw-r--r-- | libc/test/src/signal/sigaltstack_test.cpp | 3 |
3 files changed, 6 insertions, 9 deletions
diff --git a/libc/test/src/signal/CMakeLists.txt b/libc/test/src/signal/CMakeLists.txt index 56ae6fd..edbd5c1 100644 --- a/libc/test/src/signal/CMakeLists.txt +++ b/libc/test/src/signal/CMakeLists.txt @@ -32,8 +32,8 @@ add_libc_unittest( SRCS sigaction_test.cpp DEPENDS - libc.include.errno - libc.include.signal + libc.hdr.errno_macros + libc.hdr.signal_macros libc.src.signal.raise libc.src.signal.sigaction libc.test.UnitTest.ErrnoSetterMatcher @@ -119,7 +119,7 @@ add_libc_unittest( SRCS sigaltstack_test.cpp DEPENDS - libc.include.signal + libc.hdr.signal_macros libc.src.errno.errno libc.src.signal.raise libc.src.signal.sigaltstack diff --git a/libc/test/src/signal/sigaction_test.cpp b/libc/test/src/signal/sigaction_test.cpp index 262469c..a12d798 100644 --- a/libc/test/src/signal/sigaction_test.cpp +++ b/libc/test/src/signal/sigaction_test.cpp @@ -6,15 +6,13 @@ // //===----------------------------------------------------------------------===// +#include "hdr/errno_macros.h" +#include "hdr/signal_macros.h" #include "src/signal/raise.h" #include "src/signal/sigaction.h" - #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" -#include <errno.h> -#include <signal.h> - using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails; using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds; diff --git a/libc/test/src/signal/sigaltstack_test.cpp b/libc/test/src/signal/sigaltstack_test.cpp index 12bf2bf..cc392da 100644 --- a/libc/test/src/signal/sigaltstack_test.cpp +++ b/libc/test/src/signal/sigaltstack_test.cpp @@ -6,17 +6,16 @@ // //===----------------------------------------------------------------------===// +#include "hdr/signal_macros.h" #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "src/errno/libc_errno.h" #include "src/signal/linux/signal_utils.h" #include "src/signal/raise.h" #include "src/signal/sigaction.h" #include "src/signal/sigaltstack.h" - #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" -#include <signal.h> #include <stdint.h> #include <sys/syscall.h> |