1add_libc_testsuite(libc_signal_unittests)
2
3add_libc_unittest(
4  raise_test
5  SUITE
6    libc_signal_unittests
7  SRCS
8    raise_test.cpp
9  DEPENDS
10    libc.include.signal
11    libc.src.signal.raise
12)
13
14add_libc_unittest(
15  sigaction_test
16  SUITE
17    libc_signal_unittests
18  SRCS
19    sigaction_test.cpp
20  DEPENDS
21    libc.include.errno
22    libc.include.signal
23    libc.src.signal.raise
24    libc.src.signal.sigaction
25    libc.test.errno_setter_matcher
26)
27
28add_libc_unittest(
29  sigprocmask_test
30  SUITE
31    libc_signal_unittests
32  SRCS
33    sigprocmask_test.cpp
34  DEPENDS
35    libc.include.errno
36    libc.src.errno.__errno_location
37    libc.src.signal.raise
38    libc.src.signal.sigaddset
39    libc.src.signal.sigemptyset
40    libc.src.signal.sigprocmask
41    libc.test.errno_setter_matcher
42)
43
44add_libc_unittest(
45  sigaddset_test
46  SUITE
47    libc_signal_unittests
48  SRCS
49    sigaddset_test.cpp
50  DEPENDS
51    libc.include.errno
52    libc.include.signal
53    libc.src.signal.sigaddset
54    libc.test.errno_setter_matcher
55)
56
57add_libc_unittest(
58  signal_test
59  SUITE
60    libc_signal_unittests
61  SRCS
62    signal_test.cpp
63  DEPENDS
64    libc.include.errno
65    libc.include.signal
66    libc.src.errno.__errno_location
67    libc.src.signal.raise
68    libc.src.signal.signal
69    libc.test.errno_setter_matcher
70)
71
72add_libc_unittest(
73  sigfillset_test
74  SUITE
75    libc_signal_unittests
76  SRCS
77    sigfillset_test.cpp
78  DEPENDS
79    libc.include.errno
80    libc.include.signal
81    libc.src.signal.raise
82    libc.src.signal.sigfillset
83    libc.src.signal.sigprocmask
84    libc.test.errno_setter_matcher
85)
86
87add_libc_unittest(
88  sigdelset_test
89  SUITE
90    libc_signal_unittests
91  SRCS
92    sigdelset_test.cpp
93  DEPENDS
94    libc.include.errno
95    libc.include.signal
96    libc.src.signal.raise
97    libc.src.signal.sigdelset
98    libc.src.signal.sigfillset
99    libc.src.signal.sigprocmask
100    libc.test.errno_setter_matcher
101)
102