• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3  * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without modification,
6  * are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice, this list of
9  * conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12  * of conditions and the following disclaimer in the documentation and/or other materials
13  * provided with the distribution.
14  *
15  * 3. Neither the name of the copyright holder nor the names of its contributors may be used
16  * to endorse or promote products derived from this software without specific prior written
17  * permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30  */
31 #include <climits>
32 #include <gtest/gtest.h>
33 #include "it_test_signal.h"
34 
35 using namespace testing::ext;
36 namespace OHOS {
37 class SignalTest : public testing::Test {
38 public:
SetUpTestCase(void)39     static void SetUpTestCase(void) {}
TearDownTestCase(void)40     static void TearDownTestCase(void) {}
41 };
42 
43 #if defined(LOSCFG_USER_TEST_SMOKE)
44 /* *
45  * @tc.name: IT_POSIX_SIGNAL_002
46  * @tc.desc: function for SignalTest
47  * @tc.type: FUNC
48  */
49 HWTEST_F(SignalTest, ItPosixSignal002, TestSize.Level0)
50 {
51     ItPosixSignal002();
52 }
53 
54 /* *
55  * @tc.name: IT_POSIX_SIGNAL_009
56  * @tc.desc: function for SignalTest
57  * @tc.type: FUNC
58  */
59 HWTEST_F(SignalTest, ItPosixSignal009, TestSize.Level0)
60 {
61     ItPosixSignal009();
62 }
63 
64 /* *
65  * @tc.name: IT_POSIX_SIGNAL_013
66  * @tc.desc: function for SignalTest
67  * @tc.type: FUNC
68  */
69 HWTEST_F(SignalTest, ItPosixSignal013, TestSize.Level0)
70 {
71     ItPosixSignal013();
72 }
73 
74 /* *
75  * @tc.name: IT_POSIX_SIGNAL_014
76  * @tc.desc: function for SignalTest
77  * @tc.type: FUNC
78  */
79 HWTEST_F(SignalTest, ItPosixSignal014, TestSize.Level0)
80 {
81     ItPosixSignal014();
82 }
83 
84 
85 /* *
86  * @tc.name: IT_POSIX_SIGNAL_021
87  * @tc.desc: function for SignalTest
88  * @tc.type: FUNC
89  */
90 HWTEST_F(SignalTest, ItPosixSignal021, TestSize.Level0)
91 {
92     ItPosixSignal021();
93 }
94 
95 /* *
96  * @tc.name: IT_POSIX_SIGNAL_022
97  * @tc.desc: function for SignalTest
98  * @tc.type: FUNC
99  */
100 HWTEST_F(SignalTest, ItPosixSignal022, TestSize.Level0)
101 {
102     ItPosixSignal022();
103 }
104 
105 /* *
106  * @tc.name: IT_POSIX_SIGNAL_023
107  * @tc.desc: function for SignalTest
108  * @tc.type: FUNC
109  */
110 HWTEST_F(SignalTest, ItPosixSignal023, TestSize.Level0)
111 {
112     ItPosixSignal023();
113 }
114 
115 /* *
116  * @tc.name: IT_POSIX_SIGNAL_024
117  * @tc.desc: function for SignalTest
118  * @tc.type: FUNC
119  */
120 HWTEST_F(SignalTest, ItPosixSignal024, TestSize.Level0)
121 {
122     ItPosixSignal024();
123 }
124 
125 /* *
126  * @tc.name: IT_POSIX_SIGNAL_031
127  * @tc.desc: function for SignalTest
128  * @tc.type: FUNC
129  */
130 HWTEST_F(SignalTest, ItPosixSignal031, TestSize.Level0)
131 {
132     ItPosixSignal031();
133 }
134 
135 /* *
136  * @tc.name: IT_POSIX_SIGNAL_032
137  * @tc.desc: function for SignalTest
138  * @tc.type: FUNC
139  */
140 HWTEST_F(SignalTest, ItPosixSignal032, TestSize.Level0)
141 {
142     ItPosixSignal032();
143 }
144 
145 /* *
146  * @tc.name: IT_POSIX_SIGNAL_035
147  * @tc.desc: function for SignalTest
148  * @tc.type: FUNC
149  */
150 HWTEST_F(SignalTest, ItPosixSignal035, TestSize.Level0)
151 {
152     ItPosixSignal035();
153 }
154 
155 /* *
156  * @tc.name: IT_POSIX_SIGNAL_036
157  * @tc.desc: function for SignalTest
158  * @tc.type: FUNC
159  */
160 HWTEST_F(SignalTest, ItPosixSignal036, TestSize.Level0)
161 {
162     ItPosixSignal036();
163 }
164 
165 /* *
166  * @tc.name: IT_POSIX_SIGNAL_037
167  * @tc.desc: function for SignalTest
168  * @tc.type: FUNC
169  */
170 HWTEST_F(SignalTest, ItPosixSignal037, TestSize.Level0)
171 {
172     ItPosixSignal037();
173 }
174 
175 /* *
176  * @tc.name: IT_POSIX_SIGNAL_039
177  * @tc.desc: function for SignalTest
178  * @tc.type: FUNC
179  */
180 HWTEST_F(SignalTest, ItPosixSignal039, TestSize.Level0)
181 {
182     ItPosixSignal039();
183 }
184 
185 /* *
186  * @tc.name: IT_POSIX_SIGNAL_042
187  * @tc.desc: function for SignalTest
188  * @tc.type: FUNC
189  */
190 HWTEST_F(SignalTest, ItPosixSignal042, TestSize.Level0)
191 {
192     ItPosixSignal042();
193 }
194 
195 /* *
196  * @tc.name: ItPosixPipe002
197  * @tc.desc: function for SignalTest
198  * @tc.type: FUNC
199  */
200 HWTEST_F(SignalTest, ItPosixPipe002, TestSize.Level0)
201 {
202     ItPosixPipe002();
203 }
204 
205 /* *
206  * @tc.name: ItPosixMkfifo002
207  * @tc.desc: function for SignalTest
208  * @tc.type: FUNC
209  */
210 HWTEST_F(SignalTest, ItPosixMkfifo002, TestSize.Level0)
211 {
212     ItPosixMkfifo002();
213 }
214 
215 /* *
216  * @tc.name: IT_IPC_FD_ISSET_001
217  * @tc.desc: function for SignalTest
218  * @tc.type: FUNC
219  */
220 HWTEST_F(SignalTest, ItIpcFdIsset001, TestSize.Level0)
221 {
222     ItIpcFdIsset001();
223 }
224 #endif
225 
226 #if defined(LOSCFG_USER_TEST_FULL)
227 /* *
228  * @tc.name: IT_IPC_FD_CLR_001
229  * @tc.desc: function for SignalTest
230  * @tc.type: FUNC
231  */
232 HWTEST_F(SignalTest, ItIpcFdClr001, TestSize.Level0)
233 {
234     ItIpcFdClr001();
235 }
236 
237 /* *
238  * @tc.name: IT_IPC_FD_SET_001
239  * @tc.desc: function for SignalTest
240  * @tc.type: FUNC
241  */
242 HWTEST_F(SignalTest, ItIpcFdSet001, TestSize.Level0)
243 {
244     ItIpcFdSet001();
245 }
246 
247 /* *
248  * @tc.name: IT_IPC_FD_ZERO_001
249  * @tc.desc: function for SignalTest
250  * @tc.type: FUNC
251  */
252 HWTEST_F(SignalTest, ItIpcFdZero001, TestSize.Level0)
253 {
254     ItIpcFdZero001();
255 }
256 
257 /*
258  * @tc.name: IT_IPC_SIGACTION_001^M
259  * @tc.desc: function for SignalTest^M
260  * @tc.type: FUNC^M
261  */
262 HWTEST_F(SignalTest, ItIpcSigaction001, TestSize.Level0)
263 {
264     ItIpcSigaction001();
265 }
266 
267 /* *
268  * @tc.name: IT_IPC_SIGPAUSE_001
269  * @tc.desc: function for SignalTest
270  * @tc.type: FUNC
271  */
272 HWTEST_F(SignalTest, ItIpcSigpause001, TestSize.Level0)
273 {
274     ItIpcSigpause001();
275 }
276 
277 /* *
278  * @tc.name: IT_IPC_SIGPROMASK_001
279  * @tc.desc: function for SignalTest
280  * @tc.type: FUNC
281  */
282 HWTEST_F(SignalTest, ItIpcSigpromask001, TestSize.Level0)
283 {
284     ItIpcSigpromask001();
285 }
286 
287 /* *
288  * @tc.name: IT_POSIX_SIGNAL_001
289  * @tc.desc: function for SignalTest
290  * @tc.type: FUNC
291  */
292 HWTEST_F(SignalTest, ItPosixSignal001, TestSize.Level0)
293 {
294     ItPosixSignal001();
295 }
296 
297 /* *
298  * @tc.name: IT_POSIX_SIGNAL_003
299  * @tc.desc: function for SignalTest
300  * @tc.type: FUNC
301  */
302 HWTEST_F(SignalTest, ItPosixSignal003, TestSize.Level0)
303 {
304     ItPosixSignal003();
305 }
306 
307 /* *
308  * @tc.name: IT_POSIX_SIGNAL_004
309  * @tc.desc: function for SignalTest
310  * @tc.type: FUNC
311  */
312 HWTEST_F(SignalTest, ItPosixSignal004, TestSize.Level0)
313 {
314     ItPosixSignal004();
315 }
316 
317 /* *
318  * @tc.name: IT_POSIX_SIGNAL_005
319  * @tc.desc: function for SignalTest
320  * @tc.type: FUNC
321  */
322 HWTEST_F(SignalTest, ItPosixSignal005, TestSize.Level0)
323 {
324     ItPosixSignal005();
325 }
326 
327 /* *
328  * @tc.name: IT_POSIX_SIGNAL_006
329  * @tc.desc: function for SignalTest
330  * @tc.type: FUNC
331  */
332 HWTEST_F(SignalTest, ItPosixSignal006, TestSize.Level0)
333 {
334     ItPosixSignal006();
335 }
336 
337 /* *
338  * @tc.name: IT_POSIX_SIGNAL_007
339  * @tc.desc: function for SignalTest
340  * @tc.type: FUNC
341  */
342 HWTEST_F(SignalTest, ItPosixSignal007, TestSize.Level0)
343 {
344     ItPosixSignal007();
345 }
346 
347 /* *
348  * @tc.name: IT_POSIX_SIGNAL_008
349  * @tc.desc: function for SignalTest
350  * @tc.type: FUNC
351  */
352 HWTEST_F(SignalTest, ItPosixSignal008, TestSize.Level0)
353 {
354     ItPosixSignal008();
355 }
356 
357 /* *
358  * @tc.name: IT_POSIX_SIGNAL_010
359  * @tc.desc: function for SignalTest
360  * @tc.type: FUNC
361  */
362 HWTEST_F(SignalTest, ItPosixSignal010, TestSize.Level0)
363 {
364     ItPosixSignal010();
365 }
366 
367 /* *
368  * @tc.name: IT_POSIX_SIGNAL_011
369  * @tc.desc: function for SignalTest
370  * @tc.type: FUNC
371  */
372 HWTEST_F(SignalTest, ItPosixSignal011, TestSize.Level0)
373 {
374     ItPosixSignal011();
375 }
376 
377 /* *
378  * @tc.name: IT_POSIX_SIGNAL_012
379  * @tc.desc: function for SignalTest
380  * @tc.type: FUNC
381  */
382 HWTEST_F(SignalTest, ItPosixSignal012, TestSize.Level0)
383 {
384     ItPosixSignal012();
385 }
386 
387 /* *
388  * @tc.name: IT_POSIX_SIGNAL_015
389  * @tc.desc: function for SignalTest
390  * @tc.type: FUNC
391  */
392 HWTEST_F(SignalTest, ItPosixSignal015, TestSize.Level0)
393 {
394     ItPosixSignal015();
395 }
396 
397 /* *
398  * @tc.name: IT_POSIX_SIGNAL_016
399  * @tc.desc: function for SignalTest
400  * @tc.type: FUNC
401  */
402 HWTEST_F(SignalTest, ItPosixSignal016, TestSize.Level0)
403 {
404     ItPosixSignal016();
405 }
406 
407 /* *
408  * @tc.name: IT_POSIX_SIGNAL_017
409  * @tc.desc: function for SignalTest
410  * @tc.type: FUNC
411  */
412 HWTEST_F(SignalTest, ItPosixSignal017, TestSize.Level0)
413 {
414     ItPosixSignal017();
415 }
416 
417 /* *
418  * @tc.name: IT_POSIX_SIGNAL_018
419  * @tc.desc: function for SignalTest
420  * @tc.type: FUNC
421  */
422 HWTEST_F(SignalTest, ItPosixSignal018, TestSize.Level0)
423 {
424     ItPosixSignal018();
425 }
426 
427 /* *
428  * @tc.name: IT_POSIX_SIGNAL_019
429  * @tc.desc: function for SignalTest
430  * @tc.type: FUNC
431  */
432 HWTEST_F(SignalTest, ItPosixSignal019, TestSize.Level0)
433 {
434     ItPosixSignal019();
435 }
436 
437 /* *
438  * @tc.name: IT_POSIX_SIGNAL_020
439  * @tc.desc: function for SignalTest
440  * @tc.type: FUNC
441  */
442 HWTEST_F(SignalTest, ItPosixSignal020, TestSize.Level0)
443 {
444     ItPosixSignal020();
445 }
446 
447 /* *
448  * @tc.name: IT_POSIX_SIGNAL_025
449  * @tc.desc: function for SignalTest
450  * @tc.type: FUNC
451  */
452 HWTEST_F(SignalTest, ItPosixSignal025, TestSize.Level0)
453 {
454     ItPosixSignal025();
455 }
456 
457 /* *
458  * @tc.name: IT_POSIX_SIGNAL_026
459  * @tc.desc: function for SignalTest
460  * @tc.type: FUNC
461  */
462 HWTEST_F(SignalTest, ItPosixSignal026, TestSize.Level0)
463 {
464     ItPosixSignal026();
465 }
466 
467 /* *
468  * @tc.name: IT_POSIX_SIGNAL_028
469  * @tc.desc: function for SignalTest
470  * @tc.type: FUNC
471  */
472 HWTEST_F(SignalTest, ItPosixSignal028, TestSize.Level0)
473 {
474     ItPosixSignal028();
475 }
476 
477 /* *
478  * @tc.name: IT_POSIX_SIGNAL_029
479  * @tc.desc: function for SignalTest
480  * @tc.type: FUNC
481  */
482 HWTEST_F(SignalTest, ItPosixSignal029, TestSize.Level0)
483 {
484     ItPosixSignal029();
485 }
486 
487 /* *
488  * @tc.name: IT_POSIX_SIGNAL_030
489  * @tc.desc: function for SignalTest
490  * @tc.type: FUNC
491  */
492 HWTEST_F(SignalTest, ItPosixSignal030, TestSize.Level0)
493 {
494     ItPosixSignal030();
495 }
496 
497 /* *
498  * @tc.name: IT_POSIX_SIGNAL_033
499  * @tc.desc: function for SignalTest
500  * @tc.type: FUNC
501  */
502 HWTEST_F(SignalTest, ItPosixSignal033, TestSize.Level0)
503 {
504     ItPosixSignal033();
505 }
506 
507 /* *
508  * @tc.name: IT_POSIX_SIGNAL_038
509  * @tc.desc: function for SignalTest
510  * @tc.type: FUNC
511  */
512 HWTEST_F(SignalTest, ItPosixSignal038, TestSize.Level0)
513 {
514     ItPosixSignal038();
515 }
516 
517 /* *
518  * @tc.name: IT_POSIX_SIGNAL_040
519  * @tc.desc: function for SignalTest
520  * @tc.type: FUNC
521  */
522 HWTEST_F(SignalTest, ItPosixSignal040, TestSize.Level0)
523 {
524     ItPosixSignal040();
525 }
526 
527 /* *
528  * @tc.name: IT_POSIX_SIGNAL_041
529  * @tc.desc: function for SignalTest
530  * @tc.type: FUNC
531  */
532 HWTEST_F(SignalTest, ItPosixSignal041, TestSize.Level0)
533 {
534     ItPosixSignal041();
535 }
536 
537 /* *
538  * @tc.name: IT_IPC_PIPE_002
539  * @tc.desc: function for SignalTest
540  * @tc.type: FUNC
541  */
542 HWTEST_F(SignalTest, ItIpcPipe002, TestSize.Level0)
543 {
544     ItIpcPipe002();
545 }
546 
547 /* *
548  * @tc.name: IT_IPC_PIPE_003
549  * @tc.desc: function for SignalTest
550  * @tc.type: FUNC
551  */
552 HWTEST_F(SignalTest, ItIpcPipe003, TestSize.Level0)
553 {
554     ItIpcPipe003();
555 }
556 
557 /* *
558  * @tc.name: ItPosixPipe001
559  * @tc.desc: function for SignalTest
560  * @tc.type: FUNC
561  */
562 HWTEST_F(SignalTest, ItPosixPipe001, TestSize.Level0)
563 {
564     ItPosixPipe001();
565 }
566 
567 /* *
568  * @tc.name: ItPosixPipe003
569  * @tc.desc: function for SignalTest
570  * @tc.type: FUNC
571  */
572 HWTEST_F(SignalTest, ItPosixPipe003, TestSize.Level0)
573 {
574     ItPosixPipe003();
575 }
576 
577 /* *
578  * @tc.name: ItPosixPipe004
579  * @tc.desc: function for SignalTest
580  * @tc.type: FUNC
581  */
582 HWTEST_F(SignalTest, ItPosixPipe004, TestSize.Level0)
583 {
584     ItPosixPipe004();
585 }
586 
587 /* *
588  * @tc.name: ItPosixPipe005
589  * @tc.desc: function for SignalTest
590  * @tc.type: FUNC
591  */
592 HWTEST_F(SignalTest, ItPosixPipe005, TestSize.Level0)
593 {
594     ItPosixPipe005();
595 }
596 
597 /* *
598  * @tc.name: ItPosixPipe006
599  * @tc.desc: function for SignalTest
600  * @tc.type: FUNC
601  */
602 HWTEST_F(SignalTest, ItPosixPipe006, TestSize.Level0)
603 {
604     ItPosixPipe006();
605 }
606 
607 #endif
608 } // namespace OHOS
609