File tree Expand file tree Collapse file tree 9 files changed +15
-10
lines changed Expand file tree Collapse file tree 9 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include " src/signal/kill.h"
10
10
11
- #include " include/sys/syscall.h" // For syscall numbers.
12
11
#include " src/__support/OSUtil/syscall.h" // For internal syscall function.
13
12
#include " test/UnitTest/ErrnoSetterMatcher.h"
14
13
#include " test/UnitTest/Test.h"
15
14
16
15
#include < signal.h>
16
+ #include < sys/syscall.h> // For syscall numbers.
17
17
18
18
using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
19
19
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
9
#include " src/signal/raise.h"
11
10
12
11
#include " test/UnitTest/Test.h"
13
12
13
+ #include < signal.h>
14
+
14
15
TEST (LlvmLibcSignalTest, Raise) {
15
16
// SIGCONT is ingored unless stopped, so we can use it to check the return
16
17
// value of raise without needing to block.
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
9
#include " src/signal/sigaddset.h"
11
10
12
11
#include " test/UnitTest/ErrnoSetterMatcher.h"
13
12
#include " test/UnitTest/Test.h"
14
13
15
14
#include < errno.h>
15
+ #include < signal.h>
16
16
17
17
// This tests invalid inputs and ensures errno is properly set.
18
18
TEST (LlvmLibcSignalTest, SigaddsetInvalid) {
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
9
#include " src/signal/raise.h"
11
10
#include " src/signal/sigdelset.h"
12
11
#include " src/signal/sigfillset.h"
16
15
#include " test/UnitTest/Test.h"
17
16
18
17
#include < errno.h>
18
+ #include < signal.h>
19
19
20
20
TEST (LlvmLibcSigdelset, Invalid) {
21
21
using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
9
#include " src/signal/raise.h"
11
10
#include " src/signal/sigfillset.h"
12
11
#include " src/signal/sigprocmask.h"
15
14
#include " test/UnitTest/Test.h"
16
15
17
16
#include < errno.h>
17
+ #include < signal.h>
18
18
19
19
TEST (LlvmLibcSigfillset, Invalid) {
20
20
using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
9
#include " src/errno/libc_errno.h"
11
10
#include " src/signal/raise.h"
12
11
#include " src/signal/signal.h"
13
12
14
13
#include " test/UnitTest/ErrnoSetterMatcher.h"
15
14
#include " test/UnitTest/Test.h"
16
15
16
+ #include < signal.h>
17
+
17
18
using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
18
19
using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
19
20
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
9
#include " src/errno/libc_errno.h"
11
10
#include " src/signal/raise.h"
12
11
#include " src/signal/sigaddset.h"
16
15
#include " test/UnitTest/ErrnoSetterMatcher.h"
17
16
#include " test/UnitTest/Test.h"
18
17
18
+ #include < signal.h>
19
+
19
20
class LlvmLibcSignalTest : public __llvm_libc ::testing::Test {
20
21
sigset_t oldSet;
21
22
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/stdlib.h"
10
9
#include " src/stdlib/_Exit.h"
11
10
#include " src/stdlib/exit.h"
12
11
#include " test/UnitTest/Test.h"
13
12
13
+ #include < stdlib.h>
14
+
14
15
TEST (LlvmLibcStdlib, _Exit) {
15
16
EXPECT_EXITS ([] { __llvm_libc::_Exit (1 ); }, 1 );
16
17
EXPECT_EXITS ([] { __llvm_libc::_Exit (65 ); }, 65 );
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/signal.h"
10
- #include " include/stdlib.h"
11
9
#include " src/stdlib/abort.h"
12
10
#include " test/UnitTest/Test.h"
13
11
12
+ #include < signal.h>
13
+ #include < stdlib.h>
14
+
14
15
TEST (LlvmLibcStdlib, abort) {
15
16
// -1 matches against any signal, which is necessary for now until
16
17
// __llvm_libc::abort() unblocks SIGABRT.
You can’t perform that action at this time.
0 commit comments