diff --git a/libc/test/src/signal/kill_test.cpp b/libc/test/src/signal/kill_test.cpp --- a/libc/test/src/signal/kill_test.cpp +++ b/libc/test/src/signal/kill_test.cpp @@ -8,12 +8,12 @@ #include "src/signal/kill.h" -#include "include/sys/syscall.h" // For syscall numbers. #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" #include +#include // For syscall numbers. using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds; diff --git a/libc/test/src/signal/raise_test.cpp b/libc/test/src/signal/raise_test.cpp --- a/libc/test/src/signal/raise_test.cpp +++ b/libc/test/src/signal/raise_test.cpp @@ -6,11 +6,12 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" #include "src/signal/raise.h" #include "test/UnitTest/Test.h" +#include + TEST(LlvmLibcSignalTest, Raise) { // SIGCONT is ingored unless stopped, so we can use it to check the return // value of raise without needing to block. diff --git a/libc/test/src/signal/sigaddset_test.cpp b/libc/test/src/signal/sigaddset_test.cpp --- a/libc/test/src/signal/sigaddset_test.cpp +++ b/libc/test/src/signal/sigaddset_test.cpp @@ -6,13 +6,13 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" #include "src/signal/sigaddset.h" #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" #include +#include // This tests invalid inputs and ensures errno is properly set. TEST(LlvmLibcSignalTest, SigaddsetInvalid) { diff --git a/libc/test/src/signal/sigdelset_test.cpp b/libc/test/src/signal/sigdelset_test.cpp --- a/libc/test/src/signal/sigdelset_test.cpp +++ b/libc/test/src/signal/sigdelset_test.cpp @@ -6,7 +6,6 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" #include "src/signal/raise.h" #include "src/signal/sigdelset.h" #include "src/signal/sigfillset.h" @@ -16,6 +15,7 @@ #include "test/UnitTest/Test.h" #include +#include TEST(LlvmLibcSigdelset, Invalid) { using __llvm_libc::testing::ErrnoSetterMatcher::Fails; diff --git a/libc/test/src/signal/sigfillset_test.cpp b/libc/test/src/signal/sigfillset_test.cpp --- a/libc/test/src/signal/sigfillset_test.cpp +++ b/libc/test/src/signal/sigfillset_test.cpp @@ -6,7 +6,6 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" #include "src/signal/raise.h" #include "src/signal/sigfillset.h" #include "src/signal/sigprocmask.h" @@ -15,6 +14,7 @@ #include "test/UnitTest/Test.h" #include +#include TEST(LlvmLibcSigfillset, Invalid) { using __llvm_libc::testing::ErrnoSetterMatcher::Fails; diff --git a/libc/test/src/signal/signal_test.cpp b/libc/test/src/signal/signal_test.cpp --- a/libc/test/src/signal/signal_test.cpp +++ b/libc/test/src/signal/signal_test.cpp @@ -6,7 +6,6 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" #include "src/errno/libc_errno.h" #include "src/signal/raise.h" #include "src/signal/signal.h" @@ -14,6 +13,8 @@ #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" +#include + using __llvm_libc::testing::ErrnoSetterMatcher::Fails; using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds; diff --git a/libc/test/src/signal/sigprocmask_test.cpp b/libc/test/src/signal/sigprocmask_test.cpp --- a/libc/test/src/signal/sigprocmask_test.cpp +++ b/libc/test/src/signal/sigprocmask_test.cpp @@ -6,7 +6,6 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" #include "src/errno/libc_errno.h" #include "src/signal/raise.h" #include "src/signal/sigaddset.h" @@ -16,6 +15,8 @@ #include "test/UnitTest/ErrnoSetterMatcher.h" #include "test/UnitTest/Test.h" +#include + class LlvmLibcSignalTest : public __llvm_libc::testing::Test { sigset_t oldSet; diff --git a/libc/test/src/stdlib/_Exit_test.cpp b/libc/test/src/stdlib/_Exit_test.cpp --- a/libc/test/src/stdlib/_Exit_test.cpp +++ b/libc/test/src/stdlib/_Exit_test.cpp @@ -6,11 +6,12 @@ // //===----------------------------------------------------------------------===// -#include "include/stdlib.h" #include "src/stdlib/_Exit.h" #include "src/stdlib/exit.h" #include "test/UnitTest/Test.h" +#include + TEST(LlvmLibcStdlib, _Exit) { EXPECT_EXITS([] { __llvm_libc::_Exit(1); }, 1); EXPECT_EXITS([] { __llvm_libc::_Exit(65); }, 65); diff --git a/libc/test/src/stdlib/abort_test.cpp b/libc/test/src/stdlib/abort_test.cpp --- a/libc/test/src/stdlib/abort_test.cpp +++ b/libc/test/src/stdlib/abort_test.cpp @@ -6,11 +6,12 @@ // //===----------------------------------------------------------------------===// -#include "include/signal.h" -#include "include/stdlib.h" #include "src/stdlib/abort.h" #include "test/UnitTest/Test.h" +#include +#include + TEST(LlvmLibcStdlib, abort) { // -1 matches against any signal, which is necessary for now until // __llvm_libc::abort() unblocks SIGABRT.