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_pthread.h"
37
38 pthread_key_t g_key;
39 pthread_key_t g_key1;
40 pthread_key_t g_key2;
41 pthread_key_t g_pthreadKeyTest[PTHREAD_KEY_NUM];
42 pthread_t g_newTh;
43 pthread_t g_newTh2;
44 UINT32 g_taskMaxNum = LOSCFG_BASE_CORE_TSK_CONFIG;
45 pthread_once_t g_onceControl = PTHREAD_ONCE_INIT;
46 pthread_cond_t g_pthreadCondTest1 = PTHREAD_COND_INITIALIZER;
47 pthread_mutex_t g_pthreadMutexTest1 = PTHREAD_MUTEX_INITIALIZER;
48 pthread_mutex_t g_pthreadMutexTest2 = PTHREAD_MUTEX_INITIALIZER;
49 INT32 g_startNum = 0;
50 INT32 g_wakenNum = 0;
51 INT32 g_t1Start = 0;
52 INT32 g_signaled = 0;
53 INT32 g_wokenUp = -1;
54 INT32 g_lowDone = -1;
55 INT32 g_pthreadSem = 0; /* Manual semaphore */
56 INT32 g_pthreadScopeValue = 0;
57 INT32 g_pthreadSchedInherit = 0;
58 INT32 g_pthreadSchedPolicy = 0;
59 struct testdata g_td;
60
61 sem_t g_pthreadSem1;
62 sem_t g_pthreadSem2;
63
64 __scenario g_scenarii[] = {
65 CASE_POS(0, 0, 0, 0, 0, 0, 0, 0, (char *)"default"),
66 CASE_POS(1, 0, 0, 0, 0, 0, 0, 0, (char *)"detached"),
67 CASE_POS(0, 1, 0, 0, 0, 0, 0, 0, (char *)"Explicit sched"),
68 CASE_UNK(0, 0, 1, 0, 0, 0, 0, 0, (char *)"FIFO Policy"),
69 CASE_UNK(0, 0, 2, 0, 0, 0, 0, 0, (char *)"RR Policy"),
70 CASE_UNK(0, 0, 0, 1, 0, 0, 0, 0, (char *)"Max sched param"),
71 CASE_UNK(0, 0, 0, -1, 0, 0, 0, 0, (char *)"Min sched param"),
72 CASE_POS(0, 0, 0, 0, 1, 0, 0, 0, (char *)"Alternative contension scope"),
73 CASE_POS(0, 0, 0, 0, 0, 1, 0, 0, (char *)"Alternative stack"),
74 CASE_POS(0, 0, 0, 0, 0, 0, 1, 0, (char *)"No guard size"),
75 CASE_UNK(0, 0, 0, 0, 0, 0, 2, 0, (char *)"1p guard size"),
76 CASE_POS(0, 0, 0, 0, 0, 0, 0, 1, (char *)"Min stack size"),
77 /* Stack play */
78 CASE_POS(0, 0, 0, 0, 0, 0, 1, 1, (char *)"Min stack size, no guard"),
79 CASE_UNK(0, 0, 0, 0, 0, 0, 2, 1, (char *)"Min stack size, 1p guard"),
80 CASE_POS(1, 0, 0, 0, 0, 1, 0, 0, (char *)"Detached, Alternative stack"),
81 CASE_POS(1, 0, 0, 0, 0, 0, 1, 1, (char *)"Detached, Min stack size, no guard"),
82 CASE_UNK(1, 0, 0, 0, 0, 0, 2, 1, (char *)"Detached, Min stack size, 1p guard"),
83 };
84
85 pthread_t g_pthreadTestTh;
86
ScenarInit(VOID)87 VOID ScenarInit(VOID)
88 {
89 INT32 ret = 0;
90 UINT32 i;
91 INT32 old;
92 long pagesize, minstacksize;
93 long tsa, tss, tps;
94
95 pagesize = sysconf(_SC_PAGESIZE);
96 minstacksize = sysconf(_SC_THREAD_STACK_MIN);
97 tsa = sysconf(_SC_THREAD_ATTR_STACKADDR);
98 tss = sysconf(_SC_THREAD_ATTR_STACKSIZE);
99 tps = sysconf(_SC_THREAD_PRIORITY_SCHEDULING);
100
101 if (minstacksize % pagesize)
102 ICUNIT_ASSERT_EQUAL_VOID(1, 0, errno);
103
104 for (i = 0; i < NSCENAR; i++) {
105 ret = pthread_attr_init(&g_scenarii[i].ta);
106 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
107
108 if (g_scenarii[i].detached == 1) {
109 ret = pthread_attr_setdetachstate(&g_scenarii[i].ta, PTHREAD_CREATE_DETACHED);
110 ICUNIT_TRACK_EQUAL(ret, PTHREAD_NO_ERROR, ret);
111
112 ret = pthread_attr_getdetachstate(&g_scenarii[i].ta, &old);
113 ICUNIT_TRACK_EQUAL(ret, PTHREAD_NO_ERROR, ret);
114 ICUNIT_TRACK_EQUAL(old, PTHREAD_CREATE_JOINABLE, old);
115 }
116
117 /* Sched related attributes */
118 /*
119 * This routine is dependent on the Thread Execution
120 * Scheduling option
121 */
122 if (tps > 0) {
123 if (g_scenarii[i].explicitsched == 1)
124 ret = pthread_attr_setinheritsched(&g_scenarii[i].ta, PTHREAD_EXPLICIT_SCHED);
125 else
126 ret = pthread_attr_setinheritsched(&g_scenarii[i].ta, PTHREAD_INHERIT_SCHED);
127
128 ICUNIT_TRACK_EQUAL(ret, PTHREAD_NO_ERROR, ret);
129 }
130
131 if (tps > 0) {
132 if (g_scenarii[i].schedpolicy == 1)
133 ret = pthread_attr_setschedpolicy(&g_scenarii[i].ta, SCHED_FIFO);
134 if (g_scenarii[i].schedpolicy == 2)
135 ret = pthread_attr_setschedpolicy(&g_scenarii[i].ta, SCHED_RR);
136 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
137
138 if (g_scenarii[i].schedparam != 0) {
139 struct sched_param sp;
140
141 ret = pthread_attr_getschedpolicy(&g_scenarii[i].ta, &old);
142 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
143
144 if (g_scenarii[i].schedparam == 1)
145 sp.sched_priority = sched_get_priority_min(old);
146 if (g_scenarii[i].schedparam == -1)
147 sp.sched_priority = sched_get_priority_max(old);
148
149 ret = pthread_attr_setschedparam(&g_scenarii[i].ta, &sp);
150 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
151 }
152
153 if (tps > 0) {
154 ret = pthread_attr_getscope(&g_scenarii[i].ta, &old);
155 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
156
157 if (g_scenarii[i].altscope != 0) {
158 if (old == PTHREAD_SCOPE_PROCESS)
159 old = PTHREAD_SCOPE_SYSTEM;
160 else
161 old = PTHREAD_SCOPE_PROCESS;
162
163 ret = pthread_attr_setscope(&g_scenarii[i].ta, old);
164 }
165 }
166
167 if ((tss > 0) && (tsa > 0)) {
168 if (g_scenarii[i].altstack != 0) {
169 g_scenarii[i].bottom = malloc(minstacksize + pagesize);
170 ICUNIT_TRACK_NOT_EQUAL(g_scenarii[i].bottom, NULL, g_scenarii[i].bottom);
171 }
172 }
173
174
175 if (tss > 0) {
176 if (g_scenarii[i].altsize != 0) {
177 ret = pthread_attr_setstacksize(&g_scenarii[i].ta, minstacksize);
178 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
179 }
180 }
181
182 ret = sem_init(&g_scenarii[i].sem, 0, 0);
183 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
184 }
185 }
186 }
187 /*
188 * This function will free all resources consumed
189 * in the scenar_init() routine
190 */
ScenarFini(VOID)191 VOID ScenarFini(VOID)
192 {
193 INT32 ret = 0;
194 UINT32 i;
195
196 for (i = 0; i < NSCENAR; i++) {
197 if (g_scenarii[i].bottom != NULL)
198 free(g_scenarii[i].bottom);
199
200 ret = sem_destroy(&g_scenarii[i].sem);
201 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
202
203 ret = pthread_attr_destroy(&g_scenarii[i].ta);
204 ICUNIT_ASSERT_EQUAL_VOID(ret, PTHREAD_NO_ERROR, ret);
205 }
206 }
207
208 /*
209 * return value of pthread_self() is 0 when
210 * pthread create from LOS_TaskCreate()
211 */
TestPthreadSelf(void)212 pthread_t TestPthreadSelf(void)
213 {
214 pthread_t tid = pthread_self();
215 return tid;
216 }
TaskCountGetTest(VOID)217 UINT32 TaskCountGetTest(VOID)
218 {
219 // not implemented
220 return 0;
221 }
222 using namespace testing::ext;
223 namespace OHOS {
224 class PosixPthreadTest : public testing::Test {
225 public:
SetUpTestCase(void)226 static void SetUpTestCase(void) {}
TearDownTestCase(void)227 static void TearDownTestCase(void) {}
228 };
229
230 #if defined(LOSCFG_USER_TEST_SMOKE)
231 /**
232 * @tc.name: IT_POSIX_PTHREAD_003
233 * @tc.desc: function for PosixPthreadTest
234 * @tc.type: FUNC
235 * @tc.require: AR000EEMQ9
236 */
237 HWTEST_F(PosixPthreadTest, ItPosixPthread003, TestSize.Level0)
238 {
239 ItPosixPthread003();
240 }
241
242 /**
243 * @tc.name: IT_POSIX_PTHREAD_004
244 * @tc.desc: function for PosixPthreadTest
245 * @tc.type: FUNC
246 * @tc.require: AR000EEMQ9
247 */
248 HWTEST_F(PosixPthreadTest, ItPosixPthread004, TestSize.Level0)
249 {
250 ItPosixPthread004();
251 }
252
253 /**
254 * @tc.name: IT_POSIX_PTHREAD_005
255 * @tc.desc: function for PosixPthreadTest
256 * @tc.type: FUNC
257 * @tc.require: AR000EEMQ9
258 */
259 HWTEST_F(PosixPthreadTest, ItPosixPthread005, TestSize.Level0)
260 {
261 ItPosixPthread005(); // pthread_cancel
262 }
263
264 /**
265 * @tc.name: IT_POSIX_PTHREAD_006
266 * @tc.desc: function for PosixPthreadTest
267 * @tc.type: FUNC
268 * @tc.require: AR000EEMQ9
269 */
270 HWTEST_F(PosixPthreadTest, ItPosixPthread006, TestSize.Level0)
271 {
272 ItPosixPthread006();
273 }
274
275 /**
276 * @tc.name: IT_POSIX_PTHREAD_018
277 * @tc.desc: function for PosixPthreadTest
278 * @tc.type: FUNC
279 * @tc.require: AR000EEMQ9
280 */
281 HWTEST_F(PosixPthreadTest, ItPosixPthread018, TestSize.Level0)
282 {
283 ItPosixPthread018();
284 }
285
286 /**
287 * @tc.name: IT_POSIX_PTHREAD_019
288 * @tc.desc: function for PosixPthreadTest
289 * @tc.type: FUNC
290 * @tc.require: AR000EEMQ9
291 */
292 HWTEST_F(PosixPthreadTest, ItPosixPthread019, TestSize.Level0)
293 {
294 ItPosixPthread019();
295 }
296
297 /**
298 * @tc.name: IT_POSIX_PTHREAD_020
299 * @tc.desc: function for PosixPthreadTest
300 * @tc.type: FUNC
301 * @tc.require: AR000EEMQ9
302 */
303 HWTEST_F(PosixPthreadTest, ItPosixPthread020, TestSize.Level0)
304 {
305 ItPosixPthread020(); // pthread_key_delete
306 }
307
308 /**
309 * @tc.name: IT_POSIX_PTHREAD_021
310 * @tc.desc: function for PosixPthreadTest
311 * @tc.type: FUNC
312 * @tc.require: AR000EEMQ9
313 */
314 HWTEST_F(PosixPthreadTest, ItPosixPthread021, TestSize.Level0)
315 {
316 ItPosixPthread021();
317 }
318
319 /**
320 * @tc.name: IT_POSIX_PTHREAD_022
321 * @tc.desc: function for PosixPthreadTest
322 * @tc.type: FUNC
323 * @tc.require: AR000EEMQ9
324 */
325 HWTEST_F(PosixPthreadTest, ItPosixPthread022, TestSize.Level0)
326 {
327 ItPosixPthread022(); // pthread_cancel
328 }
329
330 #endif
331
332 #if defined(LOSCFG_USER_TEST_FULL)
333 /**
334 * @tc.name: IT_POSIX_PTHREAD_001
335 * @tc.desc: function for PosixPthreadTest
336 * @tc.type: FUNC
337 * @tc.require: AR000EEMQ9
338 */
339 HWTEST_F(PosixPthreadTest, ItPosixPthread001, TestSize.Level0)
340 {
341 ItPosixPthread001();
342 }
343
344 /**
345 * @tc.name: IT_POSIX_PTHREAD_002
346 * @tc.desc: function for PosixPthreadTest
347 * @tc.type: FUNC
348 * @tc.require: AR000EEMQ9
349 */
350 HWTEST_F(PosixPthreadTest, ItPosixPthread002, TestSize.Level0)
351 {
352 ItPosixPthread002();
353 }
354
355 /**
356 * @tc.name: IT_POSIX_PTHREAD_007
357 * @tc.desc: function for PosixPthreadTest
358 * @tc.type: FUNC
359 * @tc.require: AR000EEMQ9
360 */
361 HWTEST_F(PosixPthreadTest, ItPosixPthread007, TestSize.Level0)
362 {
363 ItPosixPthread007();
364 }
365
366 /**
367 * @tc.name: IT_POSIX_PTHREAD_010
368 * @tc.desc: function for PosixPthreadTest
369 * @tc.type: FUNC
370 * @tc.require: AR000EEMQ9
371 */
372 HWTEST_F(PosixPthreadTest, ItPosixPthread010, TestSize.Level0)
373 {
374 ItPosixPthread010();
375 }
376
377 /**
378 * @tc.name: IT_POSIX_PTHREAD_011
379 * @tc.desc: function for PosixPthreadTest
380 * @tc.type: FUNC
381 * @tc.require: AR000EEMQ9
382 */
383 HWTEST_F(PosixPthreadTest, ItPosixPthread011, TestSize.Level0)
384 {
385 ItPosixPthread011();
386 }
387
388 /**
389 * @tc.name: IT_POSIX_PTHREAD_013
390 * @tc.desc: function for PosixPthreadTest
391 * @tc.type: FUNC
392 * @tc.require: AR000EEMQ9
393 */
394 HWTEST_F(PosixPthreadTest, ItPosixPthread013, TestSize.Level0)
395 {
396 ItPosixPthread013();
397 }
398
399 /**
400 * @tc.name: IT_POSIX_PTHREAD_023
401 * @tc.desc: function for PosixPthreadTest
402 * @tc.type: FUNC
403 * @tc.require: AR000EEMQ9
404 */
405 HWTEST_F(PosixPthreadTest, ItPosixPthread023, TestSize.Level0)
406 {
407 ItPosixPthread023();
408 }
409
410 /**
411 * @tc.name: IT_POSIX_PTHREAD_025
412 * @tc.desc: function for PosixPthreadTest
413 * @tc.type: FUNC
414 * @tc.require: AR000EEMQ9
415 */
416 HWTEST_F(PosixPthreadTest, ItPosixPthread025, TestSize.Level0)
417 {
418 ItPosixPthread025();
419 }
420
421 /**
422 * @tc.name: IT_POSIX_PTHREAD_026
423 * @tc.desc: function for PosixPthreadTest
424 * @tc.type: FUNC
425 * @tc.require: AR000EEMQ9
426 */
427 HWTEST_F(PosixPthreadTest, ItPosixPthread026, TestSize.Level0)
428 {
429 ItPosixPthread026();
430 }
431
432 /**
433 * @tc.name: IT_POSIX_PTHREAD_027
434 * @tc.desc: function for PosixPthreadTest
435 * @tc.type: FUNC
436 * @tc.require: AR000EEMQ9
437 */
438 HWTEST_F(PosixPthreadTest, ItPosixPthread027, TestSize.Level0)
439 {
440 ItPosixPthread027();
441 }
442
443 /**
444 * @tc.name: IT_POSIX_PTHREAD_028
445 * @tc.desc: function for PosixPthreadTest
446 * @tc.type: FUNC
447 * @tc.require: AR000EEMQ9
448 */
449 HWTEST_F(PosixPthreadTest, ItPosixPthread028, TestSize.Level0)
450 {
451 ItPosixPthread028();
452 }
453
454 /**
455 * @tc.name: IT_POSIX_PTHREAD_029
456 * @tc.desc: function for PosixPthreadTest
457 * @tc.type: FUNC
458 * @tc.require: AR000EEMQ9
459 */
460 HWTEST_F(PosixPthreadTest, ItPosixPthread029, TestSize.Level0)
461 {
462 ItPosixPthread029();
463 }
464
465 /**
466 * @tc.name: IT_POSIX_PTHREAD_030
467 * @tc.desc: function for PosixPthreadTest
468 * @tc.type: FUNC
469 * @tc.require: AR000EEMQ9
470 */
471 HWTEST_F(PosixPthreadTest, ItPosixPthread030, TestSize.Level0)
472 {
473 ItPosixPthread030(); // pthread_cancel
474 }
475
476 /**
477 * @tc.name: IT_POSIX_PTHREAD_031
478 * @tc.desc: function for PosixPthreadTest
479 * @tc.type: FUNC
480 * @tc.require: AR000EEMQ9
481 */
482 HWTEST_F(PosixPthreadTest, ItPosixPthread031, TestSize.Level0)
483 {
484 ItPosixPthread031();
485 }
486
487 /**
488 * @tc.name: IT_POSIX_PTHREAD_034
489 * @tc.desc: function for PosixPthreadTest
490 * @tc.type: FUNC
491 * @tc.require: AR000EEMQ9
492 */
493 HWTEST_F(PosixPthreadTest, ItPosixPthread034, TestSize.Level0)
494 {
495 ItPosixPthread034();
496 }
497
498 /**
499 * @tc.name: IT_POSIX_PTHREAD_035
500 * @tc.desc: function for PosixPthreadTest
501 * @tc.type: FUNC
502 * @tc.require: AR000EEMQ9
503 */
504 HWTEST_F(PosixPthreadTest, ItPosixPthread035, TestSize.Level0)
505 {
506 ItPosixPthread035();
507 }
508
509 /**
510 * @tc.name: IT_POSIX_PTHREAD_039
511 * @tc.desc: function for PosixPthreadTest
512 * @tc.type: FUNC
513 * @tc.require: AR000EEMQ9
514 */
515 HWTEST_F(PosixPthreadTest, ItPosixPthread039, TestSize.Level0)
516 {
517 ItPosixPthread039(); // pthread_cancel
518 }
519
520 /**
521 * @tc.name: IT_POSIX_PTHREAD_040
522 * @tc.desc: function for PosixPthreadTest
523 * @tc.type: FUNC
524 * @tc.require: AR000EEMQ9
525 */
526 HWTEST_F(PosixPthreadTest, ItPosixPthread040, TestSize.Level0)
527 {
528 ItPosixPthread040();
529 }
530
531 /**
532 * @tc.name: IT_POSIX_PTHREAD_042
533 * @tc.desc: function for PosixPthreadTest
534 * @tc.type: FUNC
535 * @tc.require: AR000EEMQ9
536 */
537 HWTEST_F(PosixPthreadTest, ItPosixPthread042, TestSize.Level0)
538 {
539 ItPosixPthread042();
540 }
541
542 /**
543 * @tc.name: IT_POSIX_PTHREAD_044
544 * @tc.desc: function for PosixPthreadTest
545 * @tc.type: FUNC
546 * @tc.require: AR000EEMQ9
547 */
548 HWTEST_F(PosixPthreadTest, ItPosixPthread044, TestSize.Level0)
549 {
550 ItPosixPthread044();
551 }
552
553 /**
554 * @tc.name: IT_POSIX_PTHREAD_045
555 * @tc.desc: function for PosixPthreadTest
556 * @tc.type: FUNC
557 * @tc.require: AR000EEMQ9
558 */
559 HWTEST_F(PosixPthreadTest, ItPosixPthread045, TestSize.Level0)
560 {
561 ItPosixPthread045();
562 }
563
564 /**
565 * @tc.name: IT_POSIX_PTHREAD_046
566 * @tc.desc: function for PosixPthreadTest
567 * @tc.type: FUNC
568 * @tc.require: AR000EEMQ9
569 */
570 HWTEST_F(PosixPthreadTest, ItPosixPthread046, TestSize.Level0)
571 {
572 ItPosixPthread046();
573 }
574
575 /**
576 * @tc.name: IT_POSIX_PTHREAD_051
577 * @tc.desc: function for PosixPthreadTest
578 * @tc.type: FUNC
579 * @tc.require: AR000EEMQ9
580 */
581 HWTEST_F(PosixPthreadTest, ItPosixPthread051, TestSize.Level0)
582 {
583 ItPosixPthread051(); // pthread_cancel
584 }
585
586 /**
587 * @tc.name: IT_POSIX_PTHREAD_052
588 * @tc.desc: function for PosixPthreadTest
589 * @tc.type: FUNC
590 * @tc.require: AR000EEMQ9
591 */
592 HWTEST_F(PosixPthreadTest, ItPosixPthread052, TestSize.Level0)
593 {
594 ItPosixPthread052(); // pthread_key_delete
595 }
596
597 /**
598 * @tc.name: IT_POSIX_PTHREAD_053
599 * @tc.desc: function for PosixPthreadTest
600 * @tc.type: FUNC
601 * @tc.require: AR000EEMQ9
602 */
603 HWTEST_F(PosixPthreadTest, ItPosixPthread053, TestSize.Level0)
604 {
605 ItPosixPthread053(); // pthread_key_delete
606 }
607
608 /**
609 * @tc.name: IT_POSIX_PTHREAD_054
610 * @tc.desc: function for PosixPthreadTest
611 * @tc.type: FUNC
612 * @tc.require: AR000EEMQ9
613 */
614 HWTEST_F(PosixPthreadTest, ItPosixPthread054, TestSize.Level0)
615 {
616 ItPosixPthread054(); // pthread_key_delete
617 }
618
619 /**
620 * @tc.name: IT_POSIX_PTHREAD_055
621 * @tc.desc: function for PosixPthreadTest
622 * @tc.type: FUNC
623 * @tc.require: AR000EEMQ9
624 */
625 HWTEST_F(PosixPthreadTest, ItPosixPthread055, TestSize.Level0)
626 {
627 ItPosixPthread055(); // pthread_key_delete and pthread_cancel
628 }
629
630 /**
631 * @tc.name: IT_POSIX_PTHREAD_057
632 * @tc.desc: function for PosixPthreadTest
633 * @tc.type: FUNC
634 * @tc.require: AR000EEMQ9
635 */
636 HWTEST_F(PosixPthreadTest, ItPosixPthread057, TestSize.Level0)
637 {
638 ItPosixPthread057(); // pthread_cancel
639 }
640
641 /**
642 * @tc.name: IT_POSIX_PTHREAD_059
643 * @tc.desc: function for PosixPthreadTest
644 * @tc.type: FUNC
645 * @tc.require: AR000EEMQ9
646 */
647 HWTEST_F(PosixPthreadTest, ItPosixPthread059, TestSize.Level0)
648 {
649 ItPosixPthread059(); // pthread_cancel
650 }
651
652 /**
653 * @tc.name: IT_POSIX_PTHREAD_060
654 * @tc.desc: function for PosixPthreadTest
655 * @tc.type: FUNC
656 * @tc.require: AR000EEMQ9
657 */
658 HWTEST_F(PosixPthreadTest, ItPosixPthread060, TestSize.Level0)
659 {
660 ItPosixPthread060(); // pthread_cancel
661 }
662
663 /**
664 * @tc.name: IT_POSIX_PTHREAD_069
665 * @tc.desc: function for PosixPthreadTest
666 * @tc.type: FUNC
667 * @tc.require: AR000EEMQ9
668 */
669 HWTEST_F(PosixPthreadTest, ItPosixPthread069, TestSize.Level0)
670 {
671 ItPosixPthread069();
672 }
673
674 /**
675 * @tc.name: IT_POSIX_PTHREAD_070
676 * @tc.desc: function for PosixPthreadTest
677 * @tc.type: FUNC
678 * @tc.require: AR000EEMQ9
679 */
680 HWTEST_F(PosixPthreadTest, ItPosixPthread070, TestSize.Level0)
681 {
682 ItPosixPthread070(); // bug:pthread_cond_init
683 }
684
685 /**
686 * @tc.name: IT_POSIX_PTHREAD_071
687 * @tc.desc: function for PosixPthreadTest
688 * @tc.type: FUNC
689 * @tc.require: AR000EEMQ9
690 */
691 HWTEST_F(PosixPthreadTest, ItPosixPthread071, TestSize.Level0)
692 {
693 ItPosixPthread071();
694 }
695
696 /**
697 * @tc.name: IT_POSIX_PTHREAD_072
698 * @tc.desc: function for PosixPthreadTest
699 * @tc.type: FUNC
700 * @tc.require: AR000EEMQ9
701 */
702 HWTEST_F(PosixPthreadTest, ItPosixPthread072, TestSize.Level0)
703 {
704 ItPosixPthread072(); // pthread_cond_destroy doesn't fully support
705 }
706
707 /**
708 * @tc.name: IT_POSIX_PTHREAD_073
709 * @tc.desc: function for PosixPthreadTest
710 * @tc.type: FUNC
711 * @tc.require: AR000EEMQ9
712 */
713 HWTEST_F(PosixPthreadTest, ItPosixPthread073, TestSize.Level0)
714 {
715 ItPosixPthread073();
716 }
717
718 /**
719 * @tc.name: IT_POSIX_PTHREAD_074
720 * @tc.desc: function for PosixPthreadTest
721 * @tc.type: FUNC
722 * @tc.require: AR000EEMQ9
723 */
724 HWTEST_F(PosixPthreadTest, ItPosixPthread074, TestSize.Level0)
725 {
726 ItPosixPthread074();
727 }
728
729 /**
730 * @tc.name: IT_POSIX_PTHREAD_078
731 * @tc.desc: function for PosixPthreadTest
732 * @tc.type: FUNC
733 * @tc.require: AR000EEMQ9
734 */
735 HWTEST_F(PosixPthreadTest, ItPosixPthread078, TestSize.Level0)
736 {
737 ItPosixPthread078();
738 }
739
740 /**
741 * @tc.name: IT_POSIX_PTHREAD_079
742 * @tc.desc: function for PosixPthreadTest
743 * @tc.type: FUNC
744 * @tc.require: AR000EEMQ9
745 */
746 HWTEST_F(PosixPthreadTest, ItPosixPthread079, TestSize.Level0)
747 {
748 ItPosixPthread079();
749 }
750
751 /**
752 * @tc.name: IT_POSIX_PTHREAD_080
753 * @tc.desc: function for PosixPthreadTest
754 * @tc.type: FUNC
755 * @tc.require: AR000EEMQ9
756 */
757 HWTEST_F(PosixPthreadTest, ItPosixPthread080, TestSize.Level0)
758 {
759 ItPosixPthread080(); // pthread_cond
760 }
761
762 /**
763 * @tc.name: IT_POSIX_PTHREAD_081
764 * @tc.desc: function for PosixPthreadTest
765 * @tc.type: FUNC
766 * @tc.require: AR000EEMQ9
767 */
768 HWTEST_F(PosixPthreadTest, ItPosixPthread081, TestSize.Level0)
769 {
770 ItPosixPthread081(); // pthread_cond
771 }
772
773 /**
774 * @tc.name: IT_POSIX_PTHREAD_082
775 * @tc.desc: function for PosixPthreadTest
776 * @tc.type: FUNC
777 * @tc.require: AR000EEMQ9
778 */
779 HWTEST_F(PosixPthreadTest, ItPosixPthread082, TestSize.Level0)
780 {
781 ItPosixPthread082(); // pthread_cond
782 }
783
784 /**
785 * @tc.name: IT_POSIX_PTHREAD_083
786 * @tc.desc: function for PosixPthreadTest
787 * @tc.type: FUNC
788 * @tc.require: AR000EEMQ9
789 */
790 HWTEST_F(PosixPthreadTest, ItPosixPthread083, TestSize.Level0)
791 {
792 ItPosixPthread083(); // pthread_cond
793 }
794
795 /**
796 * @tc.name: IT_POSIX_PTHREAD_084
797 * @tc.desc: function for PosixPthreadTest
798 * @tc.type: FUNC
799 * @tc.require: AR000EEMQ9
800 */
801 HWTEST_F(PosixPthreadTest, ItPosixPthread084, TestSize.Level0)
802 {
803 ItPosixPthread084(); // pthread_cond
804 }
805
806 /**
807 * @tc.name: IT_POSIX_PTHREAD_085
808 * @tc.desc: function for PosixPthreadTest
809 * @tc.type: FUNC
810 * @tc.require: AR000EEMQ9
811 */
812 HWTEST_F(PosixPthreadTest, ItPosixPthread085, TestSize.Level0)
813 {
814 ItPosixPthread085(); // pthread_cond
815 }
816
817 /**
818 * @tc.name: IT_POSIX_PTHREAD_087
819 * @tc.desc: function for PosixPthreadTest
820 * @tc.type: FUNC
821 * @tc.require: AR000EEMQ9
822 */
823 HWTEST_F(PosixPthreadTest, ItPosixPthread087, TestSize.Level0)
824 {
825 ItPosixPthread087(); // pthread_cond
826 }
827
828 /**
829 * @tc.name: IT_POSIX_PTHREAD_088
830 * @tc.desc: function for PosixPthreadTest
831 * @tc.type: FUNC
832 * @tc.require: AR000EEMQ9
833 */
834 HWTEST_F(PosixPthreadTest, ItPosixPthread088, TestSize.Level0)
835 {
836 ItPosixPthread088(); // pthread_cond
837 }
838
839 /**
840 * @tc.name: IT_POSIX_PTHREAD_089
841 * @tc.desc: function for PosixPthreadTest
842 * @tc.type: FUNC
843 * @tc.require: AR000EEMQ9
844 */
845 HWTEST_F(PosixPthreadTest, ItPosixPthread089, TestSize.Level0)
846 {
847 ItPosixPthread089(); // pthread_cond
848 }
849
850 /**
851 * @tc.name: IT_POSIX_PTHREAD_090
852 * @tc.desc: function for PosixPthreadTest
853 * @tc.type: FUNC
854 * @tc.require: AR000EEMQ9
855 */
856 HWTEST_F(PosixPthreadTest, ItPosixPthread090, TestSize.Level0)
857 {
858 ItPosixPthread090(); // pthread_cond
859 }
860
861 /**
862 * @tc.name: IT_POSIX_PTHREAD_092
863 * @tc.desc: function for PosixPthreadTest
864 * @tc.type: FUNC
865 * @tc.require: AR000EEMQ9
866 */
867 HWTEST_F(PosixPthreadTest, ItPosixPthread092, TestSize.Level0)
868 {
869 ItPosixPthread092(); // pthread_cond
870 }
871
872 /**
873 * @tc.name: IT_POSIX_PTHREAD_091
874 * @tc.desc: function for PosixPthreadTest
875 * @tc.type: FUNC
876 * @tc.require: AR000EEMQ9
877 */
878 HWTEST_F(PosixPthreadTest, ItPosixPthread091, TestSize.Level0)
879 {
880 ItPosixPthread091(); // pthread_cancel
881 }
882
883 #ifndef LOSCFG_USER_TEST_SMP
884 /**
885 * @tc.name: IT_POSIX_PTHREAD_094
886 * @tc.desc: function for PosixPthreadTest
887 * @tc.type: FUNC
888 * @tc.require: AR000EEMQ9
889 */
890 HWTEST_F(PosixPthreadTest, ItPosixPthread094, TestSize.Level0)
891 {
892 ItPosixPthread094(); // pthread_cancel
893 }
894 #endif
895
896 /**
897 * @tc.name: IT_POSIX_PTHREAD_095
898 * @tc.desc: function for PosixPthreadTest
899 * @tc.type: FUNC
900 * @tc.require: AR000EEMQ9
901 */
902 HWTEST_F(PosixPthreadTest, ItPosixPthread095, TestSize.Level0)
903 {
904 ItPosixPthread095(); // pthread_cancel
905 }
906
907 /**
908 * @tc.name: IT_POSIX_PTHREAD_106
909 * @tc.desc: function for PosixPthreadTest
910 * @tc.type: FUNC
911 * @tc.require: AR000EEMQ9
912 */
913 HWTEST_F(PosixPthreadTest, ItPosixPthread106, TestSize.Level0)
914 {
915 ItPosixPthread106(); // pthread_cancel
916 }
917
918 /**
919 * @tc.name: IT_POSIX_PTHREAD_107
920 * @tc.desc: function for PosixPthreadTest
921 * @tc.type: FUNC
922 * @tc.require: AR000EEMQ9
923 */
924 HWTEST_F(PosixPthreadTest, ItPosixPthread107, TestSize.Level0)
925 {
926 ItPosixPthread107();
927 }
928
929 /**
930 * @tc.name: IT_POSIX_PTHREAD_116
931 * @tc.desc: function for PosixPthreadTest
932 * @tc.type: FUNC
933 * @tc.require: AR000EEMQ9
934 */
935 HWTEST_F(PosixPthreadTest, ItPosixPthread116, TestSize.Level0)
936 {
937 ItPosixPthread116();
938 }
939
940 /**
941 * @tc.name: IT_POSIX_PTHREAD_123
942 * @tc.desc: function for PosixPthreadTest
943 * @tc.type: FUNC
944 * @tc.require: AR000EEMQ9
945 */
946 HWTEST_F(PosixPthreadTest, ItPosixPthread123, TestSize.Level0)
947 {
948 ItPosixPthread123();
949 }
950
951 /**
952 * @tc.name: IT_POSIX_PTHREAD_124
953 * @tc.desc: function for PosixPthreadTest
954 * @tc.type: FUNC
955 * @tc.require: AR000EEMQ9
956 */
957 HWTEST_F(PosixPthreadTest, ItPosixPthread124, TestSize.Level0)
958 {
959 ItPosixPthread124();
960 }
961
962 /**
963 * @tc.name: IT_POSIX_PTHREAD_125
964 * @tc.desc: function for PosixPthreadTest
965 * @tc.type: FUNC
966 * @tc.require: AR000EEMQ9
967 */
968 HWTEST_F(PosixPthreadTest, ItPosixPthread125, TestSize.Level0)
969 {
970 ItPosixPthread125();
971 }
972
973 /**
974 * @tc.name: IT_POSIX_PTHREAD_127
975 * @tc.desc: function for PosixPthreadTest
976 * @tc.type: FUNC
977 * @tc.require: AR000EEMQ9
978 */
979 HWTEST_F(PosixPthreadTest, ItPosixPthread127, TestSize.Level0)
980 {
981 ItPosixPthread127();
982 }
983
984 /**
985 * @tc.name: IT_POSIX_PTHREAD_129
986 * @tc.desc: function for PosixPthreadTest
987 * @tc.type: FUNC
988 * @tc.require: AR000EEMQ9
989 */
990 HWTEST_F(PosixPthreadTest, ItPosixPthread129, TestSize.Level0)
991 {
992 ItPosixPthread129();
993 }
994
995 /**
996 * @tc.name: IT_POSIX_PTHREAD_132
997 * @tc.desc: function for PosixPthreadTest
998 * @tc.type: FUNC
999 * @tc.require: AR000EEMQ9
1000 */
1001 HWTEST_F(PosixPthreadTest, ItPosixPthread132, TestSize.Level0)
1002 {
1003 ItPosixPthread132();
1004 }
1005
1006 /**
1007 * @tc.name: IT_POSIX_PTHREAD_133
1008 * @tc.desc: function for PosixPthreadTest
1009 * @tc.type: FUNC
1010 * @tc.require: AR000EEMQ9
1011 */
1012 HWTEST_F(PosixPthreadTest, ItPosixPthread133, TestSize.Level0)
1013 {
1014 ItPosixPthread133();
1015 }
1016
1017 /**
1018 * @tc.name: IT_POSIX_PTHREAD_134
1019 * @tc.desc: function for PosixPthreadTest
1020 * @tc.type: FUNC
1021 * @tc.require: AR000EEMQ9
1022 */
1023 HWTEST_F(PosixPthreadTest, ItPosixPthread134, TestSize.Level0)
1024 {
1025 ItPosixPthread134();
1026 }
1027
1028 /**
1029 * @tc.name: IT_POSIX_PTHREAD_136
1030 * @tc.desc: function for PosixPthreadTest
1031 * @tc.type: FUNC
1032 * @tc.require: AR000EEMQ9
1033 */
1034 HWTEST_F(PosixPthreadTest, ItPosixPthread136, TestSize.Level0)
1035 {
1036 ItPosixPthread136();
1037 }
1038
1039 /**
1040 * @tc.name: IT_POSIX_PTHREAD_138
1041 * @tc.desc: function for PosixPthreadTest
1042 * @tc.type: FUNC
1043 * @tc.require: AR000EEMQ9
1044 */
1045 HWTEST_F(PosixPthreadTest, ItPosixPthread138, TestSize.Level0)
1046 {
1047 ItPosixPthread138();
1048 }
1049
1050 /**
1051 * @tc.name: IT_POSIX_PTHREAD_141
1052 * @tc.desc: function for PosixPthreadTest
1053 * @tc.type: FUNC
1054 * @tc.require: AR000EEMQ9
1055 */
1056 HWTEST_F(PosixPthreadTest, ItPosixPthread141, TestSize.Level0)
1057 {
1058 ItPosixPthread141();
1059 }
1060
1061 /**
1062 * @tc.name: IT_POSIX_PTHREAD_142
1063 * @tc.desc: function for PosixPthreadTest
1064 * @tc.type: FUNC
1065 * @tc.require: AR000EEMQ9
1066 */
1067 HWTEST_F(PosixPthreadTest, ItPosixPthread142, TestSize.Level0)
1068 {
1069 ItPosixPthread142();
1070 }
1071
1072 /**
1073 * @tc.name: IT_POSIX_PTHREAD_144
1074 * @tc.desc: function for PosixPthreadTest
1075 * @tc.type: FUNC
1076 * @tc.require: AR000EEMQ9
1077 */
1078 HWTEST_F(PosixPthreadTest, ItPosixPthread144, TestSize.Level0)
1079 {
1080 ItPosixPthread144(); // pthread_cancel
1081 }
1082
1083 /**
1084 * @tc.name: IT_POSIX_PTHREAD_152
1085 * @tc.desc: function for PosixPthreadTest
1086 * @tc.type: FUNC
1087 * @tc.require: AR000EEMQ9
1088 */
1089 HWTEST_F(PosixPthreadTest, ItPosixPthread152, TestSize.Level0)
1090 {
1091 ItPosixPthread152();
1092 }
1093
1094 /**
1095 * @tc.name: IT_POSIX_PTHREAD_154
1096 * @tc.desc: function for PosixPthreadTest
1097 * @tc.type: FUNC
1098 * @tc.require: AR000EEMQ9
1099 */
1100 HWTEST_F(PosixPthreadTest, ItPosixPthread154, TestSize.Level0)
1101 {
1102 ItPosixPthread154();
1103 }
1104
1105 /**
1106 * @tc.name: IT_POSIX_PTHREAD_166
1107 * @tc.desc: function for PosixPthreadTest
1108 * @tc.type: FUNC
1109 * @tc.require: AR000EEMQ9
1110 */
1111 HWTEST_F(PosixPthreadTest, ItPosixPthread166, TestSize.Level0)
1112 {
1113 ItPosixPthread166();
1114 }
1115
1116 /**
1117 * @tc.name: IT_POSIX_PTHREAD_167
1118 * @tc.desc: function for PosixPthreadTest
1119 * @tc.type: FUNC
1120 * @tc.require: AR000EEMQ9
1121 */
1122 HWTEST_F(PosixPthreadTest, ItPosixPthread167, TestSize.Level0)
1123 {
1124 ItPosixPthread167();
1125 }
1126
1127 /**
1128 * @tc.name: IT_POSIX_PTHREAD_173
1129 * @tc.desc: function for PosixPthreadTest
1130 * @tc.type: FUNC
1131 * @tc.require: AR000EEMQ9
1132 */
1133 HWTEST_F(PosixPthreadTest, ItPosixPthread173, TestSize.Level0)
1134 {
1135 ItPosixPthread173();
1136 }
1137
1138 /**
1139 * @tc.name: IT_POSIX_PTHREAD_175
1140 * @tc.desc: function for PosixPthreadTest
1141 * @tc.type: FUNC
1142 * @tc.require: AR000EEMQ9
1143 */
1144 HWTEST_F(PosixPthreadTest, ItPosixPthread175, TestSize.Level0)
1145 {
1146 ItPosixPthread175();
1147 }
1148
1149 /**
1150 * @tc.name: IT_POSIX_PTHREAD_176
1151 * @tc.desc: function for PosixPthreadTest
1152 * @tc.type: FUNC
1153 * @tc.require: AR000EEMQ9
1154 */
1155 HWTEST_F(PosixPthreadTest, ItPosixPthread176, TestSize.Level0)
1156 {
1157 ItPosixPthread176();
1158 }
1159
1160 /**
1161 * @tc.name: IT_POSIX_PTHREAD_177
1162 * @tc.desc: function for PosixPthreadTest
1163 * @tc.type: FUNC
1164 * @tc.require: AR000EEMQ9
1165 */
1166 HWTEST_F(PosixPthreadTest, ItPosixPthread177, TestSize.Level0)
1167 {
1168 ItPosixPthread177();
1169 }
1170
1171 /**
1172 * @tc.name: IT_POSIX_PTHREAD_182
1173 * @tc.desc: function for PosixPthreadTest
1174 * @tc.type: FUNC
1175 * @tc.require: AR000EEMQ9
1176 */
1177 HWTEST_F(PosixPthreadTest, ItPosixPthread182, TestSize.Level0)
1178 {
1179 ItPosixPthread182();
1180 }
1181
1182 /**
1183 * @tc.name: IT_POSIX_PTHREAD_185
1184 * @tc.desc: function for PosixPthreadTest
1185 * @tc.type: FUNC
1186 * @tc.require: AR000EEMQ9
1187 */
1188 HWTEST_F(PosixPthreadTest, ItPosixPthread185, TestSize.Level0)
1189 {
1190 ItPosixPthread185();
1191 }
1192
1193 /**
1194 * @tc.name: IT_POSIX_PTHREAD_186
1195 * @tc.desc: function for PosixPthreadTest
1196 * @tc.type: FUNC
1197 * @tc.require: AR000EEMQ9
1198 */
1199 HWTEST_F(PosixPthreadTest, ItPosixPthread186, TestSize.Level0)
1200 {
1201 ItPosixPthread186();
1202 }
1203
1204 /**
1205 * @tc.name: IT_POSIX_PTHREAD_187
1206 * @tc.desc: function for PosixPthreadTest
1207 * @tc.type: FUNC
1208 * @tc.require: AR000EEMQ9
1209 */
1210 HWTEST_F(PosixPthreadTest, ItPosixPthread187, TestSize.Level0)
1211 {
1212 ItPosixPthread187();
1213 }
1214
1215 /**
1216 * @tc.name: IT_POSIX_PTHREAD_188
1217 * @tc.desc: function for PosixPthreadTest
1218 * @tc.type: FUNC
1219 * @tc.require: AR000EEMQ9
1220 */
1221 HWTEST_F(PosixPthreadTest, ItPosixPthread188, TestSize.Level0)
1222 {
1223 ItPosixPthread188();
1224 }
1225
1226 /**
1227 * @tc.name: IT_POSIX_PTHREAD_193
1228 * @tc.desc: function for PosixPthreadTest
1229 * @tc.type: FUNC
1230 * @tc.require: AR000EEMQ9
1231 */
1232 HWTEST_F(PosixPthreadTest, ItPosixPthread193, TestSize.Level0)
1233 {
1234 ItPosixPthread193();
1235 }
1236
1237 /**
1238 * @tc.name: IT_POSIX_PTHREAD_194
1239 * @tc.desc: function for PosixPthreadTest
1240 * @tc.type: FUNC
1241 * @tc.require: AR000EEMQ9
1242 */
1243 HWTEST_F(PosixPthreadTest, ItPosixPthread194, TestSize.Level0)
1244 {
1245 ItPosixPthread194();
1246 }
1247
1248 /**
1249 * @tc.name: IT_POSIX_PTHREAD_200
1250 * @tc.desc: function for PosixPthreadTest
1251 * @tc.type: FUNC
1252 * @tc.require: AR000EEMQ9
1253 */
1254 HWTEST_F(PosixPthreadTest, ItPosixPthread200, TestSize.Level0)
1255 {
1256 ItPosixPthread200();
1257 }
1258
1259 /* *
1260 * @tc.name: IT_POSIX_PTHREAD_203
1261 * @tc.desc: function for pthread concurrency
1262 * @tc.type: FUNC
1263 * @tc.require: AR000EEMQ9
1264 */
1265 HWTEST_F(PosixPthreadTest, ItPosixPthread203, TestSize.Level0)
1266 {
1267 ItPosixPthread203();
1268 }
1269
1270 /**
1271 * @tc.name: IT_POSIX_PTHREAD_204
1272 * @tc.desc: function for PosixPthreadTest
1273 * @tc.type: FUNC
1274 * @tc.require: AR000EEMQ9
1275 */
1276 HWTEST_F(PosixPthreadTest, ItPosixPthread204, TestSize.Level0)
1277 {
1278 ItPosixPthread204();
1279 }
1280
1281 /**
1282 * @tc.name: IT_POSIX_PTHREAD_205
1283 * @tc.desc: function for PosixPthreadTest
1284 * @tc.type: FUNC
1285 * @tc.require: AR000EEMQ9
1286 */
1287 HWTEST_F(PosixPthreadTest, ItPosixPthread205, TestSize.Level0)
1288 {
1289 ItPosixPthread205();
1290 }
1291
1292 /**
1293 * @tc.name: IT_POSIX_PTHREAD_206
1294 * @tc.desc: function for PosixPthreadTest
1295 * @tc.type: FUNC
1296 * @tc.require: AR000EEMQ9
1297 */
1298 HWTEST_F(PosixPthreadTest, ItPosixPthread206, TestSize.Level0)
1299 {
1300 ItPosixPthread206();
1301 }
1302
1303 /**
1304 * @tc.name: IT_POSIX_PTHREAD_209
1305 * @tc.desc: function for PosixPthreadTest
1306 * @tc.type: FUNC
1307 * @tc.require: AR000EEMQ9
1308 */
1309 HWTEST_F(PosixPthreadTest, ItPosixPthread209, TestSize.Level0)
1310 {
1311 ItPosixPthread209();
1312 }
1313
1314 /**
1315 * @tc.name: IT_POSIX_PTHREAD_213
1316 * @tc.desc: function for PosixPthreadTest
1317 * @tc.type: FUNC
1318 * @tc.require: AR000EEMQ9
1319 */
1320 HWTEST_F(PosixPthreadTest, ItPosixPthread213, TestSize.Level0)
1321 {
1322 ItPosixPthread213();
1323 }
1324
1325 /**
1326 * @tc.name: IT_POSIX_PTHREAD_217
1327 * @tc.desc: function for PosixPthreadTest
1328 * @tc.type: FUNC
1329 * @tc.require: AR000EEMQ9
1330 */
1331 HWTEST_F(PosixPthreadTest, ItPosixPthread217, TestSize.Level0)
1332 {
1333 ItPosixPthread217(); // phthread_key_create
1334 }
1335
1336 /**
1337 * @tc.name: IT_POSIX_PTHREAD_218
1338 * @tc.desc: function for PosixPthreadTest
1339 * @tc.type: FUNC
1340 * @tc.require: AR000EEMQ9
1341 */
1342 HWTEST_F(PosixPthreadTest, ItPosixPthread218, TestSize.Level0)
1343 {
1344 ItPosixPthread218(); // phthread_key_create
1345 }
1346
1347 /**
1348 * @tc.name: IT_POSIX_PTHREAD_224
1349 * @tc.desc: function for PosixPthreadTest
1350 * @tc.type: FUNC
1351 * @tc.require: AR000EEMQ9
1352 */
1353 HWTEST_F(PosixPthreadTest, ItPosixPthread224, TestSize.Level0)
1354 {
1355 ItPosixPthread224(); // pthread_key_create
1356 }
1357
1358 /**
1359 * @tc.name: IT_POSIX_PTHREAD_226
1360 * @tc.desc: function for PosixPthreadTest
1361 * @tc.type: FUNC
1362 * @tc.require: AR000EEMQ9
1363 */
1364 HWTEST_F(PosixPthreadTest, ItPosixPthread226, TestSize.Level0)
1365 {
1366 ItPosixPthread226(); // pthread_key
1367 }
1368
1369 /**
1370 * @tc.name: IT_POSIX_PTHREAD_233
1371 * @tc.desc: function for PosixPthreadTest
1372 * @tc.type: FUNC
1373 * @tc.require: AR000EEMQ9
1374 */
1375 HWTEST_F(PosixPthreadTest, ItPosixPthread233, TestSize.Level0)
1376 {
1377 ItPosixPthread233(); // pthread_key and pthread_cancel
1378 }
1379
1380 /**
1381 * @tc.name: IT_POSIX_PTHREAD_238
1382 * @tc.desc: function for PosixPthreadTest
1383 * @tc.type: FUNC
1384 * @tc.require: AR000EEMQ9
1385 */
1386 HWTEST_F(PosixPthreadTest, ItPosixPthread238, TestSize.Level0)
1387 {
1388 ItPosixPthread238(); // pthread_cancel
1389 }
1390
1391 /**
1392 * @tc.name: IT_POSIX_PTHREAD_239
1393 * @tc.desc: function for PosixPthreadTest
1394 * @tc.type: FUNC
1395 * @tc.require: AR000EEMQ9
1396 */
1397 HWTEST_F(PosixPthreadTest, ItPosixPthread239, TestSize.Level0)
1398 {
1399 ItPosixPthread239(); // pthread_cancel
1400 }
1401
1402 /**
1403 * @tc.name: IT_POSIX_PTHREAD_240
1404 * @tc.desc: function for PosixPthreadTest
1405 * @tc.type: FUNC
1406 * @tc.require: AR000EEMQ9
1407 */
1408 HWTEST_F(PosixPthreadTest, ItPosixPthread240, TestSize.Level0)
1409 {
1410 ItPosixPthread240(); // pthread_cancel
1411 }
1412
1413 /**
1414 * @tc.name: IT_POSIX_PTHREAD_241
1415 * @tc.desc: function for PosixPthreadTest
1416 * @tc.type: FUNC
1417 * @tc.require: AR000EEMQ9
1418 */
1419 HWTEST_F(PosixPthreadTest, ItPosixPthread241, TestSize.Level0)
1420 {
1421 ItPosixPthread241(); // pthread_cancel
1422 }
1423 #endif
1424
1425 } // namespace OHOS
1426