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 "stdio.h"
32 #include <climits>
33 #include <gtest/gtest.h>
34
35
36 #include "It_posix_queue.h"
37 CHAR *g_mqueueMsessage[MQUEUE_SHORT_ARRAY_LENGTH] = {"0123456789", "1234567890", "2345678901", "3456789012", "4567890123", "5678901234", "6789012345", "7890123456", "lalalalala", "hahahahaha"};
38 CHAR g_gqname[MQUEUE_STANDARD_NAME_LENGTH];
39 CHAR g_mqueueName[LOSCFG_BASE_IPC_QUEUE_CONFIG + 1][MQUEUE_STANDARD_NAME_LENGTH];
40 mqd_t g_mqueueId[LOSCFG_BASE_IPC_QUEUE_CONFIG + 1];
41 SEM_HANDLE_T g_mqueueSem;
42 mqd_t g_messageQId;
43 mqd_t g_gqueue;
44
LOS_HwiCreate(int hwiNum,int hwiPrio,int hwiMode,HWI_PROC_FUNC hwiHandler,int * irqParam)45 int LOS_HwiCreate(int hwiNum, int hwiPrio, int hwiMode, HWI_PROC_FUNC hwiHandler, int *irqParam)
46 {
47 return 0;
48 }
49
LosSemCreate(int num,const SEM_HANDLE_T * hdl)50 int LosSemCreate(int num, const SEM_HANDLE_T *hdl)
51 {
52 return 0;
53 }
54
LosSemDelete(SEM_HANDLE_T num)55 int LosSemDelete(SEM_HANDLE_T num)
56 {
57 return 0;
58 }
59
SemPost(SEM_HANDLE_T num)60 int SemPost(SEM_HANDLE_T num)
61 {
62 return 0;
63 }
64
LosSemPost(SEM_HANDLE_T num)65 int LosSemPost(SEM_HANDLE_T num)
66 {
67 return 0;
68 }
69
HalIrqMask(int num)70 int HalIrqMask(int num)
71 {
72 return 0;
73 }
74
SemPend(SEM_HANDLE_T hdl,int num)75 int SemPend(SEM_HANDLE_T hdl, int num)
76 {
77 return 0;
78 }
79
LosSemPend(SEM_HANDLE_T hdl,int num)80 int LosSemPend(SEM_HANDLE_T hdl, int num)
81 {
82 return 0;
83 }
84
QueueCountGetTest(VOID)85 UINT32 QueueCountGetTest(VOID)
86 {
87 return 0;
88 }
89
TEST_HwiTrigger(unsigned int irq)90 void TEST_HwiTrigger(unsigned int irq)
91 {
92 return;
93 }
94
JiffiesToTick(unsigned long j)95 UINT64 JiffiesToTick(unsigned long j)
96 {
97 return 0;
98 }
99
MsecsToJiffies(const unsigned int m)100 unsigned long MsecsToJiffies(const unsigned int m)
101 {
102 return 0;
103 }
104
105 using namespace testing::ext;
106 namespace OHOS {
107 class PosixMqueueTest : public testing::Test {
108 public:
SetUpTestCase(void)109 static void SetUpTestCase(void) {}
TearDownTestCase(void)110 static void TearDownTestCase(void) {}
111 };
112
113 #if defined(LOSCFG_USER_TEST_SMOKE)
114 /* *
115 * @tc.name: IT_POSIX_QUEUE_001
116 * @tc.desc: function for PosixMqueueTest
117 * @tc.type: FUNC
118 */
119 HWTEST_F(PosixMqueueTest, ItPosixQueue001, TestSize.Level0)
120 {
121 ItPosixQueue001();
122 }
123
124 /* *
125 * @tc.name: IT_POSIX_QUEUE_003
126 * @tc.desc: function for PosixMqueueTest
127 * @tc.type: FUNC
128 */
129 HWTEST_F(PosixMqueueTest, ItPosixQueue003, TestSize.Level0)
130 {
131 ItPosixQueue003();
132 }
133
134 /* *
135 * @tc.name: IT_POSIX_QUEUE_053
136 * @tc.desc: function for PosixMqueueTest
137 * @tc.type: FUNC
138 */
139 HWTEST_F(PosixMqueueTest, ItPosixQueue053, TestSize.Level0)
140 {
141 ItPosixQueue053();
142 }
143
144 /* *
145 * @tc.name: IT_POSIX_QUEUE_028
146 * @tc.desc: function for PosixMqueueTest
147 * @tc.type: FUNC
148 */
149 HWTEST_F(PosixMqueueTest, ItPosixQueue028, TestSize.Level0)
150 {
151 ItPosixQueue028();
152 }
153
154 /* *
155 * @tc.name: IT_POSIX_QUEUE_062
156 * @tc.desc: function for PosixMqueueTest
157 * @tc.type: FUNC
158 */
159 HWTEST_F(PosixMqueueTest, ItPosixQueue062, TestSize.Level0)
160 {
161 ItPosixQueue062();
162 }
163
164 #endif
165
166 #if defined(LOSCFG_USER_TEST_FULL)
167 /**
168 * @tc.name: IT_POSIX_QUEUE_002
169 * @tc.desc: function for PosixMqueueTest
170 * @tc.type: FUNC
171 */
172 HWTEST_F(PosixMqueueTest, ItPosixQueue002, TestSize.Level0)
173 {
174 ItPosixQueue002();
175 }
176
177 /**
178 * @tc.name: IT_POSIX_QUEUE_005
179 * @tc.desc: function for PosixMqueueTest
180 * @tc.type: FUNC
181 */
182 HWTEST_F(PosixMqueueTest, ItPosixQueue005, TestSize.Level0)
183 {
184 ItPosixQueue005();
185 }
186
187 /**
188 * @tc.name: IT_POSIX_QUEUE_008
189 * @tc.desc: function for PosixMqueueTest
190 * @tc.type: FUNC
191 */
192 HWTEST_F(PosixMqueueTest, ItPosixQueue008, TestSize.Level0)
193 {
194 ItPosixQueue008();
195 }
196
197 /**
198 * @tc.name: IT_POSIX_QUEUE_011
199 * @tc.desc: function for PosixMqueueTest
200 * @tc.type: FUNC
201 */
202 HWTEST_F(PosixMqueueTest, ItPosixQueue011, TestSize.Level0)
203 {
204 ItPosixQueue011();
205 }
206
207 /**
208 * @tc.name: IT_POSIX_QUEUE_013
209 * @tc.desc: function for PosixMqueueTest
210 * @tc.type: FUNC
211 */
212 HWTEST_F(PosixMqueueTest, ItPosixQueue013, TestSize.Level0)
213 {
214 ItPosixQueue013();
215 }
216
217 /**
218 * @tc.name: IT_POSIX_QUEUE_014
219 * @tc.desc: function for PosixMqueueTest
220 * @tc.type: FUNC
221 */
222 HWTEST_F(PosixMqueueTest, ItPosixQueue014, TestSize.Level0)
223 {
224 ItPosixQueue014();
225 }
226
227 /**
228 * @tc.name: IT_POSIX_QUEUE_015
229 * @tc.desc: function for PosixMqueueTest
230 * @tc.type: FUNC
231 */
232 HWTEST_F(PosixMqueueTest, ItPosixQueue015, TestSize.Level0)
233 {
234 ItPosixQueue015();
235 }
236
237 /**
238 * @tc.name: IT_POSIX_QUEUE_016
239 * @tc.desc: function for PosixMqueueTest
240 * @tc.type: FUNC
241 */
242 HWTEST_F(PosixMqueueTest, ItPosixQueue016, TestSize.Level0)
243 {
244 ItPosixQueue016();
245 }
246
247 #ifndef LOSCFG_KERNEL_SMP
248 /**
249 * @tc.name: IT_POSIX_QUEUE_113
250 * @tc.desc: function for PosixMqueueTest
251 * @tc.type: FUNC
252 */
253 HWTEST_F(PosixMqueueTest, ItPosixQueue113, TestSize.Level0)
254 {
255 ItPosixQueue113();
256 }
257 #endif
258 /**
259 * @tc.name: IT_POSIX_QUEUE_018
260 * @tc.desc: function for PosixMqueueTest
261 * @tc.type: FUNC
262 */
263 HWTEST_F(PosixMqueueTest, ItPosixQueue018, TestSize.Level0)
264 {
265 ItPosixQueue018();
266 }
267
268 /**
269 * @tc.name: IT_POSIX_QUEUE_019
270 * @tc.desc: function for PosixMqueueTest
271 * @tc.type: FUNC
272 */
273 HWTEST_F(PosixMqueueTest, ItPosixQueue019, TestSize.Level0)
274 {
275 ItPosixQueue019();
276 }
277
278 /**
279 * @tc.name: IT_POSIX_QUEUE_020
280 * @tc.desc: function for PosixMqueueTest
281 * @tc.type: FUNC
282 */
283 HWTEST_F(PosixMqueueTest, ItPosixQueue020, TestSize.Level0)
284 {
285 ItPosixQueue020();
286 }
287
288 /**
289 * @tc.name: IT_POSIX_QUEUE_021
290 * @tc.desc: function for PosixMqueueTest
291 * @tc.type: FUNC
292 */
293 HWTEST_F(PosixMqueueTest, ItPosixQueue021, TestSize.Level0)
294 {
295 ItPosixQueue021();
296 }
297
298 /**
299 * @tc.name: IT_POSIX_QUEUE_025
300 * @tc.desc: function for PosixMqueueTest
301 * @tc.type: FUNC
302 */
303 HWTEST_F(PosixMqueueTest, ItPosixQueue025, TestSize.Level0)
304 {
305 ItPosixQueue025();
306 }
307
308 /**
309 * @tc.name: IT_POSIX_QUEUE_026
310 * @tc.desc: function for PosixMqueueTest
311 * @tc.type: FUNC
312 */
313 HWTEST_F(PosixMqueueTest, ItPosixQueue026, TestSize.Level0)
314 {
315 ItPosixQueue026();
316 }
317
318 /**
319 * @tc.name: IT_POSIX_QUEUE_027
320 * @tc.desc: function for PosixMqueueTest
321 * @tc.type: FUNC
322 */
323 HWTEST_F(PosixMqueueTest, ItPosixQueue027, TestSize.Level0)
324 {
325 ItPosixQueue027();
326 }
327
328 /**
329 * @tc.name: IT_POSIX_QUEUE_030
330 * @tc.desc: function for PosixMqueueTest
331 * @tc.type: FUNC
332 */
333 HWTEST_F(PosixMqueueTest, ItPosixQueue030, TestSize.Level0)
334 {
335 ItPosixQueue030();
336 }
337
338 /**
339 * @tc.name: IT_POSIX_QUEUE_031
340 * @tc.desc: function for PosixMqueueTest
341 * @tc.type: FUNC
342 */
343 HWTEST_F(PosixMqueueTest, ItPosixQueue031, TestSize.Level0)
344 {
345 ItPosixQueue031();
346 }
347
348 /**
349 * @tc.name: IT_POSIX_QUEUE_032
350 * @tc.desc: function for PosixMqueueTest
351 * @tc.type: FUNC
352 */
353 HWTEST_F(PosixMqueueTest, ItPosixQueue032, TestSize.Level0)
354 {
355 ItPosixQueue032();
356 }
357
358 /**
359 * @tc.name: IT_POSIX_QUEUE_033
360 * @tc.desc: function for PosixMqueueTest
361 * @tc.type: FUNC
362 */
363 HWTEST_F(PosixMqueueTest, ItPosixQueue033, TestSize.Level0)
364 {
365 ItPosixQueue033();
366 }
367
368 /**
369 * @tc.name: IT_POSIX_QUEUE_036
370 * @tc.desc: function for PosixMqueueTest
371 * @tc.type: FUNC
372 */
373 HWTEST_F(PosixMqueueTest, ItPosixQueue036, TestSize.Level0)
374 {
375 ItPosixQueue036();
376 }
377
378 /**
379 * @tc.name: IT_POSIX_QUEUE_038
380 * @tc.desc: function for PosixMqueueTest
381 * @tc.type: FUNC
382 */
383 HWTEST_F(PosixMqueueTest, ItPosixQueue038, TestSize.Level0)
384 {
385 ItPosixQueue038();
386 }
387
388 /**
389 * @tc.name: IT_POSIX_QUEUE_040
390 * @tc.desc: function for PosixMqueueTest
391 * @tc.type: FUNC
392 */
393 HWTEST_F(PosixMqueueTest, ItPosixQueue040, TestSize.Level0)
394 {
395 ItPosixQueue040();
396 }
397
398 #ifndef LOSCFG_USER_TEST_SMP
399 /**
400 * @tc.name: IT_POSIX_QUEUE_041
401 * @tc.desc: function for PosixMqueueTest
402 * @tc.type: FUNC
403 */
404 HWTEST_F(PosixMqueueTest, ItPosixQueue041, TestSize.Level0)
405 {
406 ItPosixQueue041();
407 }
408 #endif
409
410 /**
411 * @tc.name: IT_POSIX_QUEUE_042
412 * @tc.desc: function for PosixMqueueTest
413 * @tc.type: FUNC
414 */
415 HWTEST_F(PosixMqueueTest, ItPosixQueue042, TestSize.Level0)
416 {
417 ItPosixQueue042();
418 }
419
420 /**
421 * @tc.name: IT_POSIX_QUEUE_044
422 * @tc.desc: function for PosixMqueueTest
423 * @tc.type: FUNC
424 */
425 HWTEST_F(PosixMqueueTest, ItPosixQueue044, TestSize.Level0)
426 {
427 ItPosixQueue044();
428 }
429
430 /**
431 * @tc.name: IT_POSIX_QUEUE_046
432 * @tc.desc: function for PosixMqueueTest
433 * @tc.type: FUNC
434 */
435 HWTEST_F(PosixMqueueTest, ItPosixQueue046, TestSize.Level0)
436 {
437 ItPosixQueue046();
438 }
439
440 /**
441 * @tc.name: IT_POSIX_QUEUE_047
442 * @tc.desc: function for PosixMqueueTest
443 * @tc.type: FUNC
444 */
445 HWTEST_F(PosixMqueueTest, ItPosixQueue047, TestSize.Level0)
446 {
447 ItPosixQueue047();
448 }
449
450 /**
451 * @tc.name: IT_POSIX_QUEUE_048
452 * @tc.desc: function for PosixMqueueTest
453 * @tc.type: FUNC
454 */
455 HWTEST_F(PosixMqueueTest, ItPosixQueue048, TestSize.Level0)
456 {
457 ItPosixQueue048();
458 }
459
460 /**
461 * @tc.name: IT_POSIX_QUEUE_049
462 * @tc.desc: function for PosixMqueueTest
463 * @tc.type: FUNC
464 */
465 HWTEST_F(PosixMqueueTest, ItPosixQueue049, TestSize.Level0)
466 {
467 ItPosixQueue049();
468 }
469
470 /**
471 * @tc.name: IT_POSIX_QUEUE_050
472 * @tc.desc: function for PosixMqueueTest
473 * @tc.type: FUNC
474 */
475 HWTEST_F(PosixMqueueTest, ItPosixQueue050, TestSize.Level0)
476 {
477 ItPosixQueue050();
478 }
479
480 /**
481 * @tc.name: IT_POSIX_QUEUE_052
482 * @tc.desc: function for PosixMqueueTest
483 * @tc.type: FUNC
484 */
485 HWTEST_F(PosixMqueueTest, ItPosixQueue052, TestSize.Level0)
486 {
487 ItPosixQueue052();
488 }
489
490 /**
491 * @tc.name: IT_POSIX_QUEUE_054
492 * @tc.desc: function for PosixMqueueTest
493 * @tc.type: FUNC
494 */
495 HWTEST_F(PosixMqueueTest, ItPosixQueue054, TestSize.Level0)
496 {
497 ItPosixQueue054();
498 }
499
500 /**
501 * @tc.name: IT_POSIX_QUEUE_055
502 * @tc.desc: function for PosixMqueueTest
503 * @tc.type: FUNC
504 */
505 HWTEST_F(PosixMqueueTest, ItPosixQueue055, TestSize.Level0)
506 {
507 ItPosixQueue055();
508 }
509
510 /**
511 * @tc.name: IT_POSIX_QUEUE_056
512 * @tc.desc: function for PosixMqueueTest
513 * @tc.type: FUNC
514 */
515 HWTEST_F(PosixMqueueTest, ItPosixQueue056, TestSize.Level0)
516 {
517 ItPosixQueue056();
518 }
519
520 /**
521 * @tc.name: IT_POSIX_QUEUE_057
522 * @tc.desc: function for PosixMqueueTest
523 * @tc.type: FUNC
524 */
525 HWTEST_F(PosixMqueueTest, ItPosixQueue057, TestSize.Level0)
526 {
527 ItPosixQueue057();
528 }
529
530 /**
531 * @tc.name: IT_POSIX_QUEUE_058
532 * @tc.desc: function for PosixMqueueTest
533 * @tc.type: FUNC
534 */
535 HWTEST_F(PosixMqueueTest, ItPosixQueue058, TestSize.Level0)
536 {
537 ItPosixQueue058();
538 }
539
540 /**
541 * @tc.name: IT_POSIX_QUEUE_060
542 * @tc.desc: function for PosixMqueueTest
543 * @tc.type: FUNC
544 */
545 HWTEST_F(PosixMqueueTest, ItPosixQueue060, TestSize.Level0)
546 {
547 ItPosixQueue060();
548 }
549
550 /**
551 * @tc.name: IT_POSIX_QUEUE_061
552 * @tc.desc: function for PosixMqueueTest
553 * @tc.type: FUNC
554 */
555 HWTEST_F(PosixMqueueTest, ItPosixQueue061, TestSize.Level0)
556 {
557 ItPosixQueue061();
558 }
559
560 /**
561 * @tc.name: IT_POSIX_QUEUE_063
562 * @tc.desc: function for PosixMqueueTest
563 * @tc.type: FUNC
564 */
565 HWTEST_F(PosixMqueueTest, ItPosixQueue063, TestSize.Level0)
566 {
567 ItPosixQueue063();
568 }
569
570 /**
571 * @tc.name: IT_POSIX_QUEUE_064
572 * @tc.desc: function for PosixMqueueTest
573 * @tc.type: FUNC
574 */
575 HWTEST_F(PosixMqueueTest, ItPosixQueue064, TestSize.Level0)
576 {
577 ItPosixQueue064();
578 }
579
580 /**
581 * @tc.name: IT_POSIX_QUEUE_065
582 * @tc.desc: function for PosixMqueueTest
583 * @tc.type: FUNC
584 */
585 HWTEST_F(PosixMqueueTest, ItPosixQueue065, TestSize.Level0)
586 {
587 ItPosixQueue065();
588 }
589
590 /**
591 * @tc.name: IT_POSIX_QUEUE_066
592 * @tc.desc: function for PosixMqueueTest
593 * @tc.type: FUNC
594 */
595 HWTEST_F(PosixMqueueTest, ItPosixQueue066, TestSize.Level0)
596 {
597 ItPosixQueue066();
598 }
599
600 /**
601 * @tc.name: IT_POSIX_QUEUE_067
602 * @tc.desc: function for PosixMqueueTest
603 * @tc.type: FUNC
604 */
605 HWTEST_F(PosixMqueueTest, ItPosixQueue067, TestSize.Level0)
606 {
607 ItPosixQueue067();
608 }
609
610 /**
611 * @tc.name: IT_POSIX_QUEUE_069
612 * @tc.desc: function for PosixMqueueTest
613 * @tc.type: FUNC
614 */
615 HWTEST_F(PosixMqueueTest, ItPosixQueue069, TestSize.Level0)
616 {
617 ItPosixQueue069();
618 }
619
620 /**
621 * @tc.name: IT_POSIX_QUEUE_070
622 * @tc.desc: function for PosixMqueueTest
623 * @tc.type: FUNC
624 */
625 HWTEST_F(PosixMqueueTest, ItPosixQueue070, TestSize.Level0)
626 {
627 ItPosixQueue070();
628 }
629
630 /**
631 * @tc.name: IT_POSIX_QUEUE_071
632 * @tc.desc: function for PosixMqueueTest
633 * @tc.type: FUNC
634 */
635 HWTEST_F(PosixMqueueTest, ItPosixQueue071, TestSize.Level0)
636 {
637 ItPosixQueue071();
638 }
639
640 /**
641 * @tc.name: IT_POSIX_QUEUE_072
642 * @tc.desc: function for PosixMqueueTest
643 * @tc.type: FUNC
644 */
645 HWTEST_F(PosixMqueueTest, ItPosixQueue072, TestSize.Level0)
646 {
647 ItPosixQueue072();
648 }
649
650 /**
651 * @tc.name: IT_POSIX_QUEUE_073
652 * @tc.desc: function for PosixMqueueTest
653 * @tc.type: FUNC
654 */
655 HWTEST_F(PosixMqueueTest, ItPosixQueue073, TestSize.Level0)
656 {
657 ItPosixQueue073();
658 }
659
660 /**
661 * @tc.name: IT_POSIX_QUEUE_074
662 * @tc.desc: function for PosixMqueueTest
663 * @tc.type: FUNC
664 */
665 HWTEST_F(PosixMqueueTest, ItPosixQueue074, TestSize.Level0)
666 {
667 ItPosixQueue074();
668 }
669
670 /**
671 * @tc.name: IT_POSIX_QUEUE_075
672 * @tc.desc: function for PosixMqueueTest
673 * @tc.type: FUNC
674 */
675 HWTEST_F(PosixMqueueTest, ItPosixQueue075, TestSize.Level0)
676 {
677 ItPosixQueue075();
678 }
679
680 /**
681 * @tc.name: IT_POSIX_QUEUE_080
682 * @tc.desc: function for PosixMqueueTest
683 * @tc.type: FUNC
684 */
685 HWTEST_F(PosixMqueueTest, ItPosixQueue080, TestSize.Level0)
686 {
687 ItPosixQueue080();
688 }
689
690 /**
691 * @tc.name: IT_POSIX_QUEUE_081
692 * @tc.desc: function for PosixMqueueTest
693 * @tc.type: FUNC
694 */
695 HWTEST_F(PosixMqueueTest, ItPosixQueue081, TestSize.Level0)
696 {
697 ItPosixQueue081();
698 }
699
700 /**
701 * @tc.name: IT_POSIX_QUEUE_082
702 * @tc.desc: function for PosixMqueueTest
703 * @tc.type: FUNC
704 */
705 HWTEST_F(PosixMqueueTest, ItPosixQueue082, TestSize.Level0)
706 {
707 ItPosixQueue082();
708 }
709
710 /**
711 * @tc.name: IT_POSIX_QUEUE_083
712 * @tc.desc: function for PosixMqueueTest
713 * @tc.type: FUNC
714 */
715 HWTEST_F(PosixMqueueTest, ItPosixQueue083, TestSize.Level0)
716 {
717 ItPosixQueue083();
718 }
719
720 /**
721 * @tc.name: IT_POSIX_QUEUE_084
722 * @tc.desc: function for PosixMqueueTest
723 * @tc.type: FUNC
724 */
725 HWTEST_F(PosixMqueueTest, ItPosixQueue084, TestSize.Level0)
726 {
727 ItPosixQueue084();
728 }
729
730 /**
731 * @tc.name: IT_POSIX_QUEUE_085
732 * @tc.desc: function for PosixMqueueTest
733 * @tc.type: FUNC
734 */
735 HWTEST_F(PosixMqueueTest, ItPosixQueue085, TestSize.Level0)
736 {
737 ItPosixQueue085();
738 }
739
740 /**
741 * @tc.name: IT_POSIX_QUEUE_086
742 * @tc.desc: function for PosixMqueueTest
743 * @tc.type: FUNC
744 */
745 HWTEST_F(PosixMqueueTest, ItPosixQueue086, TestSize.Level0)
746 {
747 ItPosixQueue086();
748 }
749
750 /**
751 * @tc.name: IT_POSIX_QUEUE_087
752 * @tc.desc: function for PosixMqueueTest
753 * @tc.type: FUNC
754 */
755 HWTEST_F(PosixMqueueTest, ItPosixQueue087, TestSize.Level0)
756 {
757 ItPosixQueue087();
758 }
759
760 /**
761 * @tc.name: IT_POSIX_QUEUE_088
762 * @tc.desc: function for PosixMqueueTest
763 * @tc.type: FUNC
764 */
765 HWTEST_F(PosixMqueueTest, ItPosixQueue088, TestSize.Level0)
766 {
767 ItPosixQueue088();
768 }
769
770 /**
771 * @tc.name: IT_POSIX_QUEUE_089
772 * @tc.desc: function for PosixMqueueTest
773 * @tc.type: FUNC
774 */
775 HWTEST_F(PosixMqueueTest, ItPosixQueue089, TestSize.Level0)
776 {
777 ItPosixQueue089();
778 }
779
780
781 #ifndef TEST3559A_M7
782 /**
783 * @tc.name: IT_POSIX_QUEUE_090
784 * @tc.desc: function for PosixMqueueTest
785 * @tc.type: FUNC
786 */
787 HWTEST_F(PosixMqueueTest, ItPosixQueue090, TestSize.Level0)
788 {
789 ItPosixQueue090();
790 }
791
792 #endif
793 /**
794 * @tc.name: IT_POSIX_QUEUE_091
795 * @tc.desc: function for PosixMqueueTest
796 * @tc.type: FUNC
797 */
798 HWTEST_F(PosixMqueueTest, ItPosixQueue091, TestSize.Level0)
799 {
800 ItPosixQueue091();
801 }
802
803 /**
804 * @tc.name: IT_POSIX_QUEUE_093
805 * @tc.desc: function for PosixMqueueTest
806 * @tc.type: FUNC
807 */
808 HWTEST_F(PosixMqueueTest, ItPosixQueue093, TestSize.Level0)
809 {
810 ItPosixQueue093();
811 }
812
813 /**
814 * @tc.name: IT_POSIX_QUEUE_094
815 * @tc.desc: function for PosixMqueueTest
816 * @tc.type: FUNC
817 */
818 HWTEST_F(PosixMqueueTest, ItPosixQueue094, TestSize.Level0)
819 {
820 ItPosixQueue094();
821 }
822
823 /**
824 * @tc.name: IT_POSIX_QUEUE_095
825 * @tc.desc: function for PosixMqueueTest
826 * @tc.type: FUNC
827 */
828 HWTEST_F(PosixMqueueTest, ItPosixQueue095, TestSize.Level0)
829 {
830 ItPosixQueue095();
831 }
832
833 /**
834 * @tc.name: IT_POSIX_QUEUE_096
835 * @tc.desc: function for PosixMqueueTest
836 * @tc.type: FUNC
837 */
838 HWTEST_F(PosixMqueueTest, ItPosixQueue096, TestSize.Level0)
839 {
840 ItPosixQueue096();
841 }
842
843 /**
844 * @tc.name: IT_POSIX_QUEUE_097
845 * @tc.desc: function for PosixMqueueTest
846 * @tc.type: FUNC
847 */
848 HWTEST_F(PosixMqueueTest, ItPosixQueue097, TestSize.Level0)
849 {
850 ItPosixQueue097();
851 }
852
853 /**
854 * @tc.name: IT_POSIX_QUEUE_098
855 * @tc.desc: function for PosixMqueueTest
856 * @tc.type: FUNC
857 */
858 HWTEST_F(PosixMqueueTest, ItPosixQueue098, TestSize.Level0)
859 {
860 ItPosixQueue098();
861 }
862
863 /**
864 * @tc.name: IT_POSIX_QUEUE_100
865 * @tc.desc: function for PosixMqueueTest
866 * @tc.type: FUNC
867 */
868 HWTEST_F(PosixMqueueTest, ItPosixQueue100, TestSize.Level0)
869 {
870 ItPosixQueue100();
871 }
872
873 /**
874 * @tc.name: IT_POSIX_QUEUE_101
875 * @tc.desc: function for PosixMqueueTest
876 * @tc.type: FUNC
877 */
878 HWTEST_F(PosixMqueueTest, ItPosixQueue101, TestSize.Level0)
879 {
880 ItPosixQueue101();
881 }
882
883 /**
884 * @tc.name: IT_POSIX_QUEUE_102
885 * @tc.desc: function for PosixMqueueTest
886 * @tc.type: FUNC
887 */
888 HWTEST_F(PosixMqueueTest, ItPosixQueue102, TestSize.Level0)
889 {
890 ItPosixQueue102();
891 }
892
893 /**
894 * @tc.name: IT_POSIX_QUEUE_103
895 * @tc.desc: function for PosixMqueueTest
896 * @tc.type: FUNC
897 */
898 HWTEST_F(PosixMqueueTest, ItPosixQueue103, TestSize.Level0)
899 {
900 ItPosixQueue103();
901 }
902
903 /**
904 * @tc.name: IT_POSIX_QUEUE_104
905 * @tc.desc: function for PosixMqueueTest
906 * @tc.type: FUNC
907 */
908 HWTEST_F(PosixMqueueTest, ItPosixQueue104, TestSize.Level0)
909 {
910 ItPosixQueue104();
911 }
912
913 /**
914 * @tc.name: IT_POSIX_QUEUE_106
915 * @tc.desc: function for PosixMqueueTest
916 * @tc.type: FUNC
917 */
918 HWTEST_F(PosixMqueueTest, ItPosixQueue106, TestSize.Level0)
919 {
920 ItPosixQueue106();
921 }
922
923 /**
924 * @tc.name: IT_POSIX_QUEUE_108
925 * @tc.desc: function for PosixMqueueTest
926 * @tc.type: FUNC
927 */
928 HWTEST_F(PosixMqueueTest, ItPosixQueue108, TestSize.Level0)
929 {
930 ItPosixQueue108();
931 }
932
933 /**
934 * @tc.name: IT_POSIX_QUEUE_109
935 * @tc.desc: function for PosixMqueueTest
936 * @tc.type: FUNC
937 */
938 HWTEST_F(PosixMqueueTest, ItPosixQueue109, TestSize.Level0)
939 {
940 ItPosixQueue109();
941 }
942
943 /**
944 * @tc.name: IT_POSIX_QUEUE_110
945 * @tc.desc: function for PosixMqueueTest
946 * @tc.type: FUNC
947 */
948 HWTEST_F(PosixMqueueTest, ItPosixQueue110, TestSize.Level0)
949 {
950 ItPosixQueue110();
951 }
952
953
954 /**
955 * @tc.name: IT_POSIX_QUEUE_127
956 * @tc.desc: function for PosixMqueueTest
957 * @tc.type: FUNC
958 */
959 HWTEST_F(PosixMqueueTest, ItPosixQueue127, TestSize.Level0)
960 {
961 ItPosixQueue127();
962 }
963
964 /**
965 * @tc.name: IT_POSIX_QUEUE_128
966 * @tc.desc: function for PosixMqueueTest
967 * @tc.type: FUNC
968 */
969 HWTEST_F(PosixMqueueTest, ItPosixQueue128, TestSize.Level0)
970 {
971 ItPosixQueue128();
972 }
973
974 /**
975 * @tc.name: IT_POSIX_QUEUE_129
976 * @tc.desc: function for PosixMqueueTest
977 * @tc.type: FUNC
978 */
979 HWTEST_F(PosixMqueueTest, ItPosixQueue129, TestSize.Level0)
980 {
981 ItPosixQueue129();
982 }
983
984 /**
985 * @tc.name: IT_POSIX_QUEUE_130
986 * @tc.desc: function for PosixMqueueTest
987 * @tc.type: FUNC
988 */
989 HWTEST_F(PosixMqueueTest, ItPosixQueue130, TestSize.Level0)
990 {
991 ItPosixQueue130();
992 }
993
994 /* *
995 * @tc.name: IT_POSIX_QUEUE_144
996 * @tc.desc: function for PosixMqueueTest
997 * @tc.type: FUNC
998 */
999 HWTEST_F(PosixMqueueTest, ItPosixQueue144, TestSize.Level0)
1000 {
1001 ItPosixQueue144();
1002 }
1003
1004 /**
1005 * @tc.name: IT_POSIX_QUEUE_147
1006 * @tc.desc: function for PosixMqueueTest
1007 * @tc.type: FUNC
1008 */
1009 HWTEST_F(PosixMqueueTest, ItPosixQueue147, TestSize.Level0)
1010 {
1011 ItPosixQueue147();
1012 }
1013
1014 /**
1015 * @tc.name: IT_POSIX_QUEUE_148
1016 * @tc.desc: function for PosixMqueueTest
1017 * @tc.type: FUNC
1018 */
1019 HWTEST_F(PosixMqueueTest, ItPosixQueue148, TestSize.Level0)
1020 {
1021 ItPosixQueue148();
1022 }
1023
1024 /**
1025 * @tc.name: IT_POSIX_QUEUE_149
1026 * @tc.desc: function for PosixMqueueTest
1027 * @tc.type: FUNC
1028 */
1029 HWTEST_F(PosixMqueueTest, ItPosixQueue149, TestSize.Level0)
1030 {
1031 ItPosixQueue149();
1032 }
1033
1034 /**
1035 * @tc.name: IT_POSIX_QUEUE_150
1036 * @tc.desc: function for PosixMqueueTest
1037 * @tc.type: FUNC
1038 */
1039 HWTEST_F(PosixMqueueTest, ItPosixQueue150, TestSize.Level0)
1040 {
1041 ItPosixQueue150();
1042 }
1043
1044 /**
1045 * @tc.name: IT_POSIX_QUEUE_151
1046 * @tc.desc: function for PosixMqueueTest
1047 * @tc.type: FUNC
1048 */
1049 HWTEST_F(PosixMqueueTest, ItPosixQueue151, TestSize.Level0)
1050 {
1051 ItPosixQueue151();
1052 }
1053
1054 /**
1055 * @tc.name: IT_POSIX_QUEUE_152
1056 * @tc.desc: function for PosixMqueueTest
1057 * @tc.type: FUNC
1058 */
1059 HWTEST_F(PosixMqueueTest, ItPosixQueue152, TestSize.Level0)
1060 {
1061 ItPosixQueue152();
1062 }
1063
1064 /**
1065 * @tc.name: IT_POSIX_QUEUE_153
1066 * @tc.desc: function for PosixMqueueTest
1067 * @tc.type: FUNC
1068 */
1069 HWTEST_F(PosixMqueueTest, ItPosixQueue153, TestSize.Level0)
1070 {
1071 ItPosixQueue153();
1072 }
1073
1074 /**
1075 * @tc.name: IT_POSIX_QUEUE_154
1076 * @tc.desc: function for PosixMqueueTest
1077 * @tc.type: FUNC
1078 */
1079 HWTEST_F(PosixMqueueTest, ItPosixQueue154, TestSize.Level0)
1080 {
1081 ItPosixQueue154();
1082 }
1083
1084 /**
1085 * @tc.name: IT_POSIX_QUEUE_155
1086 * @tc.desc: function for PosixMqueueTest
1087 * @tc.type: FUNC
1088 */
1089 HWTEST_F(PosixMqueueTest, ItPosixQueue155, TestSize.Level0)
1090 {
1091 ItPosixQueue155();
1092 }
1093
1094 /**
1095 * @tc.name: IT_POSIX_QUEUE_156
1096 * @tc.desc: function for PosixMqueueTest
1097 * @tc.type: FUNC
1098 */
1099 HWTEST_F(PosixMqueueTest, ItPosixQueue156, TestSize.Level0)
1100 {
1101 ItPosixQueue156();
1102 }
1103
1104 /**
1105 * @tc.name: IT_POSIX_QUEUE_164
1106 * @tc.desc: function for PosixMqueueTest
1107 * @tc.type: FUNC
1108 */
1109 HWTEST_F(PosixMqueueTest, ItPosixQueue164, TestSize.Level0)
1110 {
1111 ItPosixQueue164();
1112 }
1113
1114 /**
1115 * @tc.name: IT_POSIX_QUEUE_165
1116 * @tc.desc: function for PosixMqueueTest
1117 * @tc.type: FUNC
1118 */
1119 HWTEST_F(PosixMqueueTest, ItPosixQueue165, TestSize.Level0)
1120 {
1121 ItPosixQueue165();
1122 }
1123
1124 /**
1125 * @tc.name: IT_POSIX_QUEUE_166
1126 * @tc.desc: function for PosixMqueueTest
1127 * @tc.type: FUNC
1128 */
1129 HWTEST_F(PosixMqueueTest, ItPosixQueue166, TestSize.Level0)
1130 {
1131 ItPosixQueue166();
1132 }
1133
1134 /**
1135 * @tc.name: IT_POSIX_QUEUE_168
1136 * @tc.desc: function for PosixMqueueTest
1137 * @tc.type: FUNC
1138 */
1139 HWTEST_F(PosixMqueueTest, ItPosixQueue168, TestSize.Level0)
1140 {
1141 ItPosixQueue168();
1142 }
1143
1144 /**
1145 * @tc.name: IT_POSIX_QUEUE_169
1146 * @tc.desc: function for PosixMqueueTest
1147 * @tc.type: FUNC
1148 */
1149 HWTEST_F(PosixMqueueTest, ItPosixQueue169, TestSize.Level0)
1150 {
1151 ItPosixQueue169();
1152 }
1153
1154 /**
1155 * @tc.name: IT_POSIX_QUEUE_173
1156 * @tc.desc: function for PosixMqueueTest
1157 * @tc.type: FUNC
1158 */
1159 HWTEST_F(PosixMqueueTest, ItPosixQueue173, TestSize.Level0)
1160 {
1161 ItPosixQueue173();
1162 }
1163
1164 /**
1165 * @tc.name: IT_POSIX_QUEUE_175
1166 * @tc.desc: function for PosixMqueueTest
1167 * @tc.type: FUNC
1168 */
1169 HWTEST_F(PosixMqueueTest, ItPosixQueue175, TestSize.Level0)
1170 {
1171 ItPosixQueue175();
1172 }
1173
1174 /**
1175 * @tc.name: IT_POSIX_QUEUE_176
1176 * @tc.desc: function for PosixMqueueTest
1177 * @tc.type: FUNC
1178 */
1179 HWTEST_F(PosixMqueueTest, ItPosixQueue176, TestSize.Level0)
1180 {
1181 ItPosixQueue176();
1182 }
1183
1184 /**
1185 * @tc.name: IT_POSIX_QUEUE_187
1186 * @tc.desc: function for PosixMqueueTest
1187 * @tc.type: FUNC
1188 */
1189 HWTEST_F(PosixMqueueTest, ItPosixQueue187, TestSize.Level0)
1190 {
1191 ItPosixQueue187();
1192 }
1193
1194
1195 /**
1196 * @tc.name: IT_POSIX_QUEUE_200
1197 * @tc.desc: function for PosixMqueueTest
1198 * @tc.type: FUNC
1199 */
1200 HWTEST_F(PosixMqueueTest, ItPosixQueue200, TestSize.Level0)
1201 {
1202 ItPosixQueue200();
1203 }
1204
1205 /**
1206 * @tc.name: IT_POSIX_QUEUE_201
1207 * @tc.desc: function for PosixMqueueTest
1208 * @tc.type: FUNC
1209 */
1210 HWTEST_F(PosixMqueueTest, ItPosixQueue201, TestSize.Level0)
1211 {
1212 ItPosixQueue201();
1213 }
1214
1215 /**
1216 * @tc.name: IT_POSIX_QUEUE_202
1217 * @tc.desc: function for PosixMqueueTest
1218 * @tc.type: FUNC
1219 */
1220 HWTEST_F(PosixMqueueTest, ItPosixQueue202, TestSize.Level0)
1221 {
1222 ItPosixQueue202();
1223 }
1224
1225 /**
1226 * @tc.name: IT_POSIX_QUEUE_203
1227 * @tc.desc: function for PosixMqueueTest
1228 * @tc.type: FUNC
1229 */
1230 HWTEST_F(PosixMqueueTest, ItPosixQueue203, TestSize.Level0)
1231 {
1232 ItPosixQueue203();
1233 }
1234
1235 #if (LOSCFG_USER_TEST_SMP == 1)
1236 /**
1237 * @tc.name: IT_POSIX_QUEUE_204
1238 * @tc.desc: function for PosixMqueueTest
1239 * @tc.type: FUNC
1240 */
1241 HWTEST_F(PosixMqueueTest, ItPosixQueue204, TestSize.Level0)
1242 {
1243 ItPosixQueue204();
1244 }
1245
1246 #endif
1247
1248 /**
1249 * @tc.name: IT_POSIX_QUEUE_205
1250 * @tc.desc: function for mq_notify:Set sigev_notify to SIGEV_NONE
1251 * @tc.type: FUNC
1252 */
1253 HWTEST_F(PosixMqueueTest, ItPosixQueue205, TestSize.Level0)
1254 {
1255 ItPosixQueue205();
1256 }
1257
1258 /**
1259 * @tc.name: IT_POSIX_QUEUE_206
1260 * @tc.desc: function for mq_notify:The function returns a failure and the error code is verified.
1261 * @tc.type: FUNC
1262 */
1263 HWTEST_F(PosixMqueueTest, ItPosixQueue206, TestSize.Level0)
1264 {
1265 ItPosixQueue206();
1266 }
1267
1268 /**
1269 * @tc.name: IT_POSIX_QUEUE_207
1270 * @tc.desc: function for mq_notify:Set sigev_notify to SIGEV_NONE
1271 * @tc.type: FUNC
1272 */
1273 HWTEST_F(PosixMqueueTest, ItPosixQueue207, TestSize.Level0)
1274 {
1275 ItPosixQueue207();
1276 }
1277
1278 /**
1279 * @tc.name: IT_POSIX_QUEUE_208
1280 * @tc.desc: function for mq_notify:The message queue is not empty.
1281 * @tc.type: FUNC
1282 */
1283 HWTEST_F(PosixMqueueTest, ItPosixQueue208, TestSize.Level0)
1284 {
1285 ItPosixQueue208();
1286 }
1287
1288 /**
1289 * @tc.name: IT_POSIX_QUEUE_209
1290 * @tc.desc: function for mq_notify:The message queue has waiters.
1291 * @tc.type: FUNC
1292 **/
1293 HWTEST_F(PosixMqueueTest, ItPosixQueue209, TestSize.Level0)
1294 {
1295 ItPosixQueue209();
1296 }
1297
1298 #endif
1299 } // namespace OHOS
1300