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, const_cast<char *>("default")),
66     CASE_POS(1, 0, 0, 0, 0, 0, 0, 0, const_cast<char *>("detached")),
67     CASE_POS(0, 1, 0, 0, 0, 0, 0, 0, const_cast<char *>("Explicit sched")),
68     CASE_UNK(0, 0, 1, 0, 0, 0, 0, 0, const_cast<char *>("FIFO Policy")),
69     CASE_UNK(0, 0, 2, 0, 0, 0, 0, 0, const_cast<char *>("RR Policy")),
70     CASE_UNK(0, 0, 0, 1, 0, 0, 0, 0, const_cast<char *>("Max sched param")),
71     CASE_UNK(0, 0, 0, -1, 0, 0, 0, 0, const_cast<char >("Min sched param")),
72     CASE_POS(0, 0, 0, 0, 1, 0, 0, 0, const_cast<char *>("Alternative contension scope")),
73     CASE_POS(0, 0, 0, 0, 0, 1, 0, 0, const_cast<char *>("Alternative stack")),
74     CASE_POS(0, 0, 0, 0, 0, 0, 1, 0, const_cast<char *>("No guard size")),
75     CASE_UNK(0, 0, 0, 0, 0, 0, 2, 0, const_cast<char *>("1p guard size")),
76     CASE_POS(0, 0, 0, 0, 0, 0, 0, 1, const_cast<char *>("Min stack size")),
77     /* Stack play */
78     CASE_POS(0, 0, 0, 0, 0, 0, 1, 1, const_cast<char *>("Min stack size, no guard")),
79     CASE_UNK(0, 0, 0, 0, 0, 0, 2, 1, const_cast<char *>("Min stack size, 1p guard")),
80     CASE_POS(1, 0, 0, 0, 0, 1, 0, 0, const_cast<char *>("Detached, Alternative stack")),
81     CASE_POS(1, 0, 0, 0, 0, 0, 1, 1, const_cast<char *>("Detached, Min stack size, no guard")),
82     CASE_UNK(1, 0, 0, 0, 0, 0, 2, 1, const_cast<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  */
HWTEST_F(PosixPthreadTest, ItPosixPthread003, TestSize.Level0)236 HWTEST_F(PosixPthreadTest, ItPosixPthread003, TestSize.Level0)
237 {
238     ItPosixPthread003();
239 }
240 
241 /**
242  * @tc.name: IT_POSIX_PTHREAD_004
243  * @tc.desc: function for PosixPthreadTest
244  * @tc.type: FUNC
245  */
HWTEST_F(PosixPthreadTest, ItPosixPthread004, TestSize.Level0)246 HWTEST_F(PosixPthreadTest, ItPosixPthread004, TestSize.Level0)
247 {
248     ItPosixPthread004();
249 }
250 
251 /**
252  * @tc.name: IT_POSIX_PTHREAD_005
253  * @tc.desc: function for PosixPthreadTest
254  * @tc.type: FUNC
255  */
HWTEST_F(PosixPthreadTest, ItPosixPthread005, TestSize.Level0)256 HWTEST_F(PosixPthreadTest, ItPosixPthread005, TestSize.Level0)
257 {
258     ItPosixPthread005(); // pthread_cancel
259 }
260 
261 /**
262  * @tc.name: IT_POSIX_PTHREAD_006
263  * @tc.desc: function for PosixPthreadTest
264  * @tc.type: FUNC
265  */
HWTEST_F(PosixPthreadTest, ItPosixPthread006, TestSize.Level0)266 HWTEST_F(PosixPthreadTest, ItPosixPthread006, TestSize.Level0)
267 {
268     ItPosixPthread006();
269 }
270 
271 /**
272  * @tc.name: IT_POSIX_PTHREAD_018
273  * @tc.desc: function for PosixPthreadTest
274  * @tc.type: FUNC
275  */
HWTEST_F(PosixPthreadTest, ItPosixPthread018, TestSize.Level0)276 HWTEST_F(PosixPthreadTest, ItPosixPthread018, TestSize.Level0)
277 {
278     ItPosixPthread018();
279 }
280 
281 /**
282  * @tc.name: IT_POSIX_PTHREAD_019
283  * @tc.desc: function for PosixPthreadTest
284  * @tc.type: FUNC
285  */
HWTEST_F(PosixPthreadTest, ItPosixPthread019, TestSize.Level0)286 HWTEST_F(PosixPthreadTest, ItPosixPthread019, TestSize.Level0)
287 {
288     ItPosixPthread019();
289 }
290 
291 /**
292  * @tc.name: IT_POSIX_PTHREAD_020
293  * @tc.desc: function for PosixPthreadTest
294  * @tc.type: FUNC
295  */
HWTEST_F(PosixPthreadTest, ItPosixPthread020, TestSize.Level0)296 HWTEST_F(PosixPthreadTest, ItPosixPthread020, TestSize.Level0)
297 {
298     ItPosixPthread020(); // pthread_key_delete
299 }
300 
301 /**
302  * @tc.name: IT_POSIX_PTHREAD_021
303  * @tc.desc: function for PosixPthreadTest
304  * @tc.type: FUNC
305  */
HWTEST_F(PosixPthreadTest, ItPosixPthread021, TestSize.Level0)306 HWTEST_F(PosixPthreadTest, ItPosixPthread021, TestSize.Level0)
307 {
308     ItPosixPthread021();
309 }
310 
311 /**
312  * @tc.name: IT_POSIX_PTHREAD_022
313  * @tc.desc: function for PosixPthreadTest
314  * @tc.type: FUNC
315  */
HWTEST_F(PosixPthreadTest, ItPosixPthread022, TestSize.Level0)316 HWTEST_F(PosixPthreadTest, ItPosixPthread022, TestSize.Level0)
317 {
318     ItPosixPthread022(); // pthread_cancel
319 }
320 
321 #endif
322 
323 #if defined(LOSCFG_USER_TEST_FULL)
324 /**
325  * @tc.name: IT_POSIX_PTHREAD_001
326  * @tc.desc: function for PosixPthreadTest
327  * @tc.type: FUNC
328  */
HWTEST_F(PosixPthreadTest, ItPosixPthread001, TestSize.Level0)329 HWTEST_F(PosixPthreadTest, ItPosixPthread001, TestSize.Level0)
330 {
331     ItPosixPthread001();
332 }
333 
334 /**
335  * @tc.name: IT_POSIX_PTHREAD_002
336  * @tc.desc: function for PosixPthreadTest
337  * @tc.type: FUNC
338  */
HWTEST_F(PosixPthreadTest, ItPosixPthread002, TestSize.Level0)339 HWTEST_F(PosixPthreadTest, ItPosixPthread002, TestSize.Level0)
340 {
341     ItPosixPthread002();
342 }
343 
344 /**
345  * @tc.name: IT_POSIX_PTHREAD_007
346  * @tc.desc: function for PosixPthreadTest
347  * @tc.type: FUNC
348  */
HWTEST_F(PosixPthreadTest, ItPosixPthread007, TestSize.Level0)349 HWTEST_F(PosixPthreadTest, ItPosixPthread007, TestSize.Level0)
350 {
351     ItPosixPthread007();
352 }
353 
354 /**
355  * @tc.name: IT_POSIX_PTHREAD_010
356  * @tc.desc: function for PosixPthreadTest
357  * @tc.type: FUNC
358  */
HWTEST_F(PosixPthreadTest, ItPosixPthread010, TestSize.Level0)359 HWTEST_F(PosixPthreadTest, ItPosixPthread010, TestSize.Level0)
360 {
361     ItPosixPthread010();
362 }
363 
364 /**
365  * @tc.name: IT_POSIX_PTHREAD_011
366  * @tc.desc: function for PosixPthreadTest
367  * @tc.type: FUNC
368  */
HWTEST_F(PosixPthreadTest, ItPosixPthread011, TestSize.Level0)369 HWTEST_F(PosixPthreadTest, ItPosixPthread011, TestSize.Level0)
370 {
371     ItPosixPthread011();
372 }
373 
374 /**
375  * @tc.name: IT_POSIX_PTHREAD_013
376  * @tc.desc: function for PosixPthreadTest
377  * @tc.type: FUNC
378  */
HWTEST_F(PosixPthreadTest, ItPosixPthread013, TestSize.Level0)379 HWTEST_F(PosixPthreadTest, ItPosixPthread013, TestSize.Level0)
380 {
381     ItPosixPthread013();
382 }
383 
384 /**
385  * @tc.name: IT_POSIX_PTHREAD_023
386  * @tc.desc: function for PosixPthreadTest
387  * @tc.type: FUNC
388  */
HWTEST_F(PosixPthreadTest, ItPosixPthread023, TestSize.Level0)389 HWTEST_F(PosixPthreadTest, ItPosixPthread023, TestSize.Level0)
390 {
391     ItPosixPthread023();
392 }
393 
394 /**
395  * @tc.name: IT_POSIX_PTHREAD_025
396  * @tc.desc: function for PosixPthreadTest
397  * @tc.type: FUNC
398  */
HWTEST_F(PosixPthreadTest, ItPosixPthread025, TestSize.Level0)399 HWTEST_F(PosixPthreadTest, ItPosixPthread025, TestSize.Level0)
400 {
401     ItPosixPthread025();
402 }
403 
404 /**
405  * @tc.name: IT_POSIX_PTHREAD_026
406  * @tc.desc: function for PosixPthreadTest
407  * @tc.type: FUNC
408  */
HWTEST_F(PosixPthreadTest, ItPosixPthread026, TestSize.Level0)409 HWTEST_F(PosixPthreadTest, ItPosixPthread026, TestSize.Level0)
410 {
411     ItPosixPthread026();
412 }
413 
414 /**
415  * @tc.name: IT_POSIX_PTHREAD_027
416  * @tc.desc: function for PosixPthreadTest
417  * @tc.type: FUNC
418  */
HWTEST_F(PosixPthreadTest, ItPosixPthread027, TestSize.Level0)419 HWTEST_F(PosixPthreadTest, ItPosixPthread027, TestSize.Level0)
420 {
421     ItPosixPthread027();
422 }
423 
424 /**
425  * @tc.name: IT_POSIX_PTHREAD_028
426  * @tc.desc: function for PosixPthreadTest
427  * @tc.type: FUNC
428  */
HWTEST_F(PosixPthreadTest, ItPosixPthread028, TestSize.Level0)429 HWTEST_F(PosixPthreadTest, ItPosixPthread028, TestSize.Level0)
430 {
431     ItPosixPthread028();
432 }
433 
434 /**
435  * @tc.name: IT_POSIX_PTHREAD_029
436  * @tc.desc: function for PosixPthreadTest
437  * @tc.type: FUNC
438  */
HWTEST_F(PosixPthreadTest, ItPosixPthread029, TestSize.Level0)439 HWTEST_F(PosixPthreadTest, ItPosixPthread029, TestSize.Level0)
440 {
441     ItPosixPthread029();
442 }
443 
444 /**
445  * @tc.name: IT_POSIX_PTHREAD_030
446  * @tc.desc: function for PosixPthreadTest
447  * @tc.type: FUNC
448  */
HWTEST_F(PosixPthreadTest, ItPosixPthread030, TestSize.Level0)449 HWTEST_F(PosixPthreadTest, ItPosixPthread030, TestSize.Level0)
450 {
451     ItPosixPthread030(); // pthread_cancel
452 }
453 
454 /**
455  * @tc.name: IT_POSIX_PTHREAD_031
456  * @tc.desc: function for PosixPthreadTest
457  * @tc.type: FUNC
458  */
HWTEST_F(PosixPthreadTest, ItPosixPthread031, TestSize.Level0)459 HWTEST_F(PosixPthreadTest, ItPosixPthread031, TestSize.Level0)
460 {
461     ItPosixPthread031();
462 }
463 
464 /**
465  * @tc.name: IT_POSIX_PTHREAD_034
466  * @tc.desc: function for PosixPthreadTest
467  * @tc.type: FUNC
468  */
HWTEST_F(PosixPthreadTest, ItPosixPthread034, TestSize.Level0)469 HWTEST_F(PosixPthreadTest, ItPosixPthread034, TestSize.Level0)
470 {
471     ItPosixPthread034();
472 }
473 
474 /**
475  * @tc.name: IT_POSIX_PTHREAD_035
476  * @tc.desc: function for PosixPthreadTest
477  * @tc.type: FUNC
478  */
HWTEST_F(PosixPthreadTest, ItPosixPthread035, TestSize.Level0)479 HWTEST_F(PosixPthreadTest, ItPosixPthread035, TestSize.Level0)
480 {
481     ItPosixPthread035();
482 }
483 
484 /**
485  * @tc.name: IT_POSIX_PTHREAD_039
486  * @tc.desc: function for PosixPthreadTest
487  * @tc.type: FUNC
488  */
HWTEST_F(PosixPthreadTest, ItPosixPthread039, TestSize.Level0)489 HWTEST_F(PosixPthreadTest, ItPosixPthread039, TestSize.Level0)
490 {
491     ItPosixPthread039(); // pthread_cancel
492 }
493 
494 /**
495  * @tc.name: IT_POSIX_PTHREAD_040
496  * @tc.desc: function for PosixPthreadTest
497  * @tc.type: FUNC
498  */
HWTEST_F(PosixPthreadTest, ItPosixPthread040, TestSize.Level0)499 HWTEST_F(PosixPthreadTest, ItPosixPthread040, TestSize.Level0)
500 {
501     ItPosixPthread040();
502 }
503 
504 /**
505  * @tc.name: IT_POSIX_PTHREAD_042
506  * @tc.desc: function for PosixPthreadTest
507  * @tc.type: FUNC
508  */
HWTEST_F(PosixPthreadTest, ItPosixPthread042, TestSize.Level0)509 HWTEST_F(PosixPthreadTest, ItPosixPthread042, TestSize.Level0)
510 {
511     ItPosixPthread042();
512 }
513 
514 /**
515  * @tc.name: IT_POSIX_PTHREAD_044
516  * @tc.desc: function for PosixPthreadTest
517  * @tc.type: FUNC
518  */
HWTEST_F(PosixPthreadTest, ItPosixPthread044, TestSize.Level0)519 HWTEST_F(PosixPthreadTest, ItPosixPthread044, TestSize.Level0)
520 {
521     ItPosixPthread044();
522 }
523 
524 /**
525  * @tc.name: IT_POSIX_PTHREAD_045
526  * @tc.desc: function for PosixPthreadTest
527  * @tc.type: FUNC
528  */
HWTEST_F(PosixPthreadTest, ItPosixPthread045, TestSize.Level0)529 HWTEST_F(PosixPthreadTest, ItPosixPthread045, TestSize.Level0)
530 {
531     ItPosixPthread045();
532 }
533 
534 /**
535  * @tc.name: IT_POSIX_PTHREAD_046
536  * @tc.desc: function for PosixPthreadTest
537  * @tc.type: FUNC
538  */
HWTEST_F(PosixPthreadTest, ItPosixPthread046, TestSize.Level0)539 HWTEST_F(PosixPthreadTest, ItPosixPthread046, TestSize.Level0)
540 {
541     ItPosixPthread046();
542 }
543 
544 /**
545  * @tc.name: IT_POSIX_PTHREAD_051
546  * @tc.desc: function for PosixPthreadTest
547  * @tc.type: FUNC
548  */
HWTEST_F(PosixPthreadTest, ItPosixPthread051, TestSize.Level0)549 HWTEST_F(PosixPthreadTest, ItPosixPthread051, TestSize.Level0)
550 {
551     ItPosixPthread051(); // pthread_cancel
552 }
553 
554 /**
555  * @tc.name: IT_POSIX_PTHREAD_052
556  * @tc.desc: function for PosixPthreadTest
557  * @tc.type: FUNC
558  */
HWTEST_F(PosixPthreadTest, ItPosixPthread052, TestSize.Level0)559 HWTEST_F(PosixPthreadTest, ItPosixPthread052, TestSize.Level0)
560 {
561     ItPosixPthread052(); // pthread_key_delete
562 }
563 
564 /**
565  * @tc.name: IT_POSIX_PTHREAD_053
566  * @tc.desc: function for PosixPthreadTest
567  * @tc.type: FUNC
568  */
HWTEST_F(PosixPthreadTest, ItPosixPthread053, TestSize.Level0)569 HWTEST_F(PosixPthreadTest, ItPosixPthread053, TestSize.Level0)
570 {
571     ItPosixPthread053(); // pthread_key_delete
572 }
573 
574 /**
575  * @tc.name: IT_POSIX_PTHREAD_054
576  * @tc.desc: function for PosixPthreadTest
577  * @tc.type: FUNC
578  */
HWTEST_F(PosixPthreadTest, ItPosixPthread054, TestSize.Level0)579 HWTEST_F(PosixPthreadTest, ItPosixPthread054, TestSize.Level0)
580 {
581     ItPosixPthread054(); // pthread_key_delete
582 }
583 
584 /**
585  * @tc.name: IT_POSIX_PTHREAD_055
586  * @tc.desc: function for PosixPthreadTest
587  * @tc.type: FUNC
588  */
HWTEST_F(PosixPthreadTest, ItPosixPthread055, TestSize.Level0)589 HWTEST_F(PosixPthreadTest, ItPosixPthread055, TestSize.Level0)
590 {
591     ItPosixPthread055(); // pthread_key_delete and pthread_cancel
592 }
593 
594 /**
595  * @tc.name: IT_POSIX_PTHREAD_057
596  * @tc.desc: function for PosixPthreadTest
597  * @tc.type: FUNC
598  */
HWTEST_F(PosixPthreadTest, ItPosixPthread057, TestSize.Level0)599 HWTEST_F(PosixPthreadTest, ItPosixPthread057, TestSize.Level0)
600 {
601     ItPosixPthread057(); // pthread_cancel
602 }
603 
604 /**
605  * @tc.name: IT_POSIX_PTHREAD_059
606  * @tc.desc: function for PosixPthreadTest
607  * @tc.type: FUNC
608  */
HWTEST_F(PosixPthreadTest, ItPosixPthread059, TestSize.Level0)609 HWTEST_F(PosixPthreadTest, ItPosixPthread059, TestSize.Level0)
610 {
611     ItPosixPthread059(); // pthread_cancel
612 }
613 
614 /**
615  * @tc.name: IT_POSIX_PTHREAD_060
616  * @tc.desc: function for PosixPthreadTest
617  * @tc.type: FUNC
618  */
HWTEST_F(PosixPthreadTest, ItPosixPthread060, TestSize.Level0)619 HWTEST_F(PosixPthreadTest, ItPosixPthread060, TestSize.Level0)
620 {
621     ItPosixPthread060(); // pthread_cancel
622 }
623 
624 /**
625  * @tc.name: IT_POSIX_PTHREAD_069
626  * @tc.desc: function for PosixPthreadTest
627  * @tc.type: FUNC
628  */
HWTEST_F(PosixPthreadTest, ItPosixPthread069, TestSize.Level0)629 HWTEST_F(PosixPthreadTest, ItPosixPthread069, TestSize.Level0)
630 {
631     ItPosixPthread069();
632 }
633 
634 /**
635  * @tc.name: IT_POSIX_PTHREAD_070
636  * @tc.desc: function for PosixPthreadTest
637  * @tc.type: FUNC
638  */
HWTEST_F(PosixPthreadTest, ItPosixPthread070, TestSize.Level0)639 HWTEST_F(PosixPthreadTest, ItPosixPthread070, TestSize.Level0)
640 {
641     ItPosixPthread070(); // bug:pthread_cond_init
642 }
643 
644 /**
645  * @tc.name: IT_POSIX_PTHREAD_071
646  * @tc.desc: function for PosixPthreadTest
647  * @tc.type: FUNC
648  */
HWTEST_F(PosixPthreadTest, ItPosixPthread071, TestSize.Level0)649 HWTEST_F(PosixPthreadTest, ItPosixPthread071, TestSize.Level0)
650 {
651     ItPosixPthread071();
652 }
653 
654 /**
655  * @tc.name: IT_POSIX_PTHREAD_072
656  * @tc.desc: function for PosixPthreadTest
657  * @tc.type: FUNC
658  */
HWTEST_F(PosixPthreadTest, ItPosixPthread072, TestSize.Level0)659 HWTEST_F(PosixPthreadTest, ItPosixPthread072, TestSize.Level0)
660 {
661     ItPosixPthread072(); // pthread_cond_destroy doesn't fully support
662 }
663 
664 /**
665  * @tc.name: IT_POSIX_PTHREAD_073
666  * @tc.desc: function for PosixPthreadTest
667  * @tc.type: FUNC
668  */
HWTEST_F(PosixPthreadTest, ItPosixPthread073, TestSize.Level0)669 HWTEST_F(PosixPthreadTest, ItPosixPthread073, TestSize.Level0)
670 {
671     ItPosixPthread073();
672 }
673 
674 /**
675  * @tc.name: IT_POSIX_PTHREAD_074
676  * @tc.desc: function for PosixPthreadTest
677  * @tc.type: FUNC
678  */
HWTEST_F(PosixPthreadTest, ItPosixPthread074, TestSize.Level0)679 HWTEST_F(PosixPthreadTest, ItPosixPthread074, TestSize.Level0)
680 {
681     ItPosixPthread074();
682 }
683 
684 /**
685  * @tc.name: IT_POSIX_PTHREAD_078
686  * @tc.desc: function for PosixPthreadTest
687  * @tc.type: FUNC
688  */
HWTEST_F(PosixPthreadTest, ItPosixPthread078, TestSize.Level0)689 HWTEST_F(PosixPthreadTest, ItPosixPthread078, TestSize.Level0)
690 {
691     ItPosixPthread078();
692 }
693 
694 /**
695  * @tc.name: IT_POSIX_PTHREAD_079
696  * @tc.desc: function for PosixPthreadTest
697  * @tc.type: FUNC
698  */
HWTEST_F(PosixPthreadTest, ItPosixPthread079, TestSize.Level0)699 HWTEST_F(PosixPthreadTest, ItPosixPthread079, TestSize.Level0)
700 {
701     ItPosixPthread079();
702 }
703 
704 /**
705  * @tc.name: IT_POSIX_PTHREAD_080
706  * @tc.desc: function for PosixPthreadTest
707  * @tc.type: FUNC
708  */
HWTEST_F(PosixPthreadTest, ItPosixPthread080, TestSize.Level0)709 HWTEST_F(PosixPthreadTest, ItPosixPthread080, TestSize.Level0)
710 {
711     ItPosixPthread080(); // pthread_cond
712 }
713 
714 /**
715  * @tc.name: IT_POSIX_PTHREAD_081
716  * @tc.desc: function for PosixPthreadTest
717  * @tc.type: FUNC
718  */
HWTEST_F(PosixPthreadTest, ItPosixPthread081, TestSize.Level0)719 HWTEST_F(PosixPthreadTest, ItPosixPthread081, TestSize.Level0)
720 {
721     ItPosixPthread081(); // pthread_cond
722 }
723 
724 /**
725  * @tc.name: IT_POSIX_PTHREAD_082
726  * @tc.desc: function for PosixPthreadTest
727  * @tc.type: FUNC
728  */
HWTEST_F(PosixPthreadTest, ItPosixPthread082, TestSize.Level0)729 HWTEST_F(PosixPthreadTest, ItPosixPthread082, TestSize.Level0)
730 {
731     ItPosixPthread082(); // pthread_cond
732 }
733 
734 /**
735  * @tc.name: IT_POSIX_PTHREAD_083
736  * @tc.desc: function for PosixPthreadTest
737  * @tc.type: FUNC
738  */
HWTEST_F(PosixPthreadTest, ItPosixPthread083, TestSize.Level0)739 HWTEST_F(PosixPthreadTest, ItPosixPthread083, TestSize.Level0)
740 {
741     ItPosixPthread083(); // pthread_cond
742 }
743 
744 /**
745  * @tc.name: IT_POSIX_PTHREAD_084
746  * @tc.desc: function for PosixPthreadTest
747  * @tc.type: FUNC
748  */
HWTEST_F(PosixPthreadTest, ItPosixPthread084, TestSize.Level0)749 HWTEST_F(PosixPthreadTest, ItPosixPthread084, TestSize.Level0)
750 {
751     ItPosixPthread084(); // pthread_cond
752 }
753 
754 /**
755  * @tc.name: IT_POSIX_PTHREAD_085
756  * @tc.desc: function for PosixPthreadTest
757  * @tc.type: FUNC
758  */
HWTEST_F(PosixPthreadTest, ItPosixPthread085, TestSize.Level0)759 HWTEST_F(PosixPthreadTest, ItPosixPthread085, TestSize.Level0)
760 {
761     ItPosixPthread085(); // pthread_cond
762 }
763 
764 /**
765  * @tc.name: IT_POSIX_PTHREAD_087
766  * @tc.desc: function for PosixPthreadTest
767  * @tc.type: FUNC
768  */
HWTEST_F(PosixPthreadTest, ItPosixPthread087, TestSize.Level0)769 HWTEST_F(PosixPthreadTest, ItPosixPthread087, TestSize.Level0)
770 {
771     ItPosixPthread087(); // pthread_cond
772 }
773 
774 /**
775  * @tc.name: IT_POSIX_PTHREAD_088
776  * @tc.desc: function for PosixPthreadTest
777  * @tc.type: FUNC
778  */
HWTEST_F(PosixPthreadTest, ItPosixPthread088, TestSize.Level0)779 HWTEST_F(PosixPthreadTest, ItPosixPthread088, TestSize.Level0)
780 {
781     ItPosixPthread088(); // pthread_cond
782 }
783 
784 /**
785  * @tc.name: IT_POSIX_PTHREAD_089
786  * @tc.desc: function for PosixPthreadTest
787  * @tc.type: FUNC
788  */
HWTEST_F(PosixPthreadTest, ItPosixPthread089, TestSize.Level0)789 HWTEST_F(PosixPthreadTest, ItPosixPthread089, TestSize.Level0)
790 {
791     ItPosixPthread089(); // pthread_cond
792 }
793 
794 /**
795  * @tc.name: IT_POSIX_PTHREAD_090
796  * @tc.desc: function for PosixPthreadTest
797  * @tc.type: FUNC
798  */
HWTEST_F(PosixPthreadTest, ItPosixPthread090, TestSize.Level0)799 HWTEST_F(PosixPthreadTest, ItPosixPthread090, TestSize.Level0)
800 {
801     ItPosixPthread090(); // pthread_cond
802 }
803 
804 /**
805  * @tc.name: IT_POSIX_PTHREAD_092
806  * @tc.desc: function for PosixPthreadTest
807  * @tc.type: FUNC
808  */
HWTEST_F(PosixPthreadTest, ItPosixPthread092, TestSize.Level0)809 HWTEST_F(PosixPthreadTest, ItPosixPthread092, TestSize.Level0)
810 {
811     ItPosixPthread092(); // pthread_cond
812 }
813 
814 /**
815  * @tc.name: IT_POSIX_PTHREAD_091
816  * @tc.desc: function for PosixPthreadTest
817  * @tc.type: FUNC
818  */
HWTEST_F(PosixPthreadTest, ItPosixPthread091, TestSize.Level0)819 HWTEST_F(PosixPthreadTest, ItPosixPthread091, TestSize.Level0)
820 {
821     ItPosixPthread091(); // pthread_cancel
822 }
823 
824 #ifndef LOSCFG_USER_TEST_SMP
825 /**
826  * @tc.name: IT_POSIX_PTHREAD_094
827  * @tc.desc: function for PosixPthreadTest
828  * @tc.type: FUNC
829  */
HWTEST_F(PosixPthreadTest, ItPosixPthread094, TestSize.Level0)830 HWTEST_F(PosixPthreadTest, ItPosixPthread094, TestSize.Level0)
831 {
832     ItPosixPthread094(); // pthread_cancel
833 }
834 #endif
835 
836 /**
837  * @tc.name: IT_POSIX_PTHREAD_095
838  * @tc.desc: function for PosixPthreadTest
839  * @tc.type: FUNC
840  */
HWTEST_F(PosixPthreadTest, ItPosixPthread095, TestSize.Level0)841 HWTEST_F(PosixPthreadTest, ItPosixPthread095, TestSize.Level0)
842 {
843     ItPosixPthread095(); // pthread_cancel
844 }
845 
846 /**
847  * @tc.name: IT_POSIX_PTHREAD_106
848  * @tc.desc: function for PosixPthreadTest
849  * @tc.type: FUNC
850  */
HWTEST_F(PosixPthreadTest, ItPosixPthread106, TestSize.Level0)851 HWTEST_F(PosixPthreadTest, ItPosixPthread106, TestSize.Level0)
852 {
853     ItPosixPthread106(); // pthread_cancel
854 }
855 
856 /**
857  * @tc.name: IT_POSIX_PTHREAD_107
858  * @tc.desc: function for PosixPthreadTest
859  * @tc.type: FUNC
860  */
HWTEST_F(PosixPthreadTest, ItPosixPthread107, TestSize.Level0)861 HWTEST_F(PosixPthreadTest, ItPosixPthread107, TestSize.Level0)
862 {
863     ItPosixPthread107();
864 }
865 
866 /**
867  * @tc.name: IT_POSIX_PTHREAD_116
868  * @tc.desc: function for PosixPthreadTest
869  * @tc.type: FUNC
870  */
HWTEST_F(PosixPthreadTest, ItPosixPthread116, TestSize.Level0)871 HWTEST_F(PosixPthreadTest, ItPosixPthread116, TestSize.Level0)
872 {
873     ItPosixPthread116();
874 }
875 
876 /**
877  * @tc.name: IT_POSIX_PTHREAD_123
878  * @tc.desc: function for PosixPthreadTest
879  * @tc.type: FUNC
880  */
HWTEST_F(PosixPthreadTest, ItPosixPthread123, TestSize.Level0)881 HWTEST_F(PosixPthreadTest, ItPosixPthread123, TestSize.Level0)
882 {
883     ItPosixPthread123();
884 }
885 
886 /**
887  * @tc.name: IT_POSIX_PTHREAD_124
888  * @tc.desc: function for PosixPthreadTest
889  * @tc.type: FUNC
890  */
HWTEST_F(PosixPthreadTest, ItPosixPthread124, TestSize.Level0)891 HWTEST_F(PosixPthreadTest, ItPosixPthread124, TestSize.Level0)
892 {
893     ItPosixPthread124();
894 }
895 
896 /**
897  * @tc.name: IT_POSIX_PTHREAD_125
898  * @tc.desc: function for PosixPthreadTest
899  * @tc.type: FUNC
900  */
HWTEST_F(PosixPthreadTest, ItPosixPthread125, TestSize.Level0)901 HWTEST_F(PosixPthreadTest, ItPosixPthread125, TestSize.Level0)
902 {
903     ItPosixPthread125();
904 }
905 
906 /**
907  * @tc.name: IT_POSIX_PTHREAD_127
908  * @tc.desc: function for PosixPthreadTest
909  * @tc.type: FUNC
910  */
HWTEST_F(PosixPthreadTest, ItPosixPthread127, TestSize.Level0)911 HWTEST_F(PosixPthreadTest, ItPosixPthread127, TestSize.Level0)
912 {
913     ItPosixPthread127();
914 }
915 
916 /**
917  * @tc.name: IT_POSIX_PTHREAD_129
918  * @tc.desc: function for PosixPthreadTest
919  * @tc.type: FUNC
920  */
HWTEST_F(PosixPthreadTest, ItPosixPthread129, TestSize.Level0)921 HWTEST_F(PosixPthreadTest, ItPosixPthread129, TestSize.Level0)
922 {
923     ItPosixPthread129();
924 }
925 
926 /**
927  * @tc.name: IT_POSIX_PTHREAD_132
928  * @tc.desc: function for PosixPthreadTest
929  * @tc.type: FUNC
930  */
HWTEST_F(PosixPthreadTest, ItPosixPthread132, TestSize.Level0)931 HWTEST_F(PosixPthreadTest, ItPosixPthread132, TestSize.Level0)
932 {
933     ItPosixPthread132();
934 }
935 
936 /**
937  * @tc.name: IT_POSIX_PTHREAD_133
938  * @tc.desc: function for PosixPthreadTest
939  * @tc.type: FUNC
940  */
HWTEST_F(PosixPthreadTest, ItPosixPthread133, TestSize.Level0)941 HWTEST_F(PosixPthreadTest, ItPosixPthread133, TestSize.Level0)
942 {
943     ItPosixPthread133();
944 }
945 
946 /**
947  * @tc.name: IT_POSIX_PTHREAD_134
948  * @tc.desc: function for PosixPthreadTest
949  * @tc.type: FUNC
950  */
HWTEST_F(PosixPthreadTest, ItPosixPthread134, TestSize.Level0)951 HWTEST_F(PosixPthreadTest, ItPosixPthread134, TestSize.Level0)
952 {
953     ItPosixPthread134();
954 }
955 
956 /**
957  * @tc.name: IT_POSIX_PTHREAD_136
958  * @tc.desc: function for PosixPthreadTest
959  * @tc.type: FUNC
960  */
HWTEST_F(PosixPthreadTest, ItPosixPthread136, TestSize.Level0)961 HWTEST_F(PosixPthreadTest, ItPosixPthread136, TestSize.Level0)
962 {
963     ItPosixPthread136();
964 }
965 
966 /**
967  * @tc.name: IT_POSIX_PTHREAD_138
968  * @tc.desc: function for PosixPthreadTest
969  * @tc.type: FUNC
970  */
HWTEST_F(PosixPthreadTest, ItPosixPthread138, TestSize.Level0)971 HWTEST_F(PosixPthreadTest, ItPosixPthread138, TestSize.Level0)
972 {
973     ItPosixPthread138();
974 }
975 
976 /**
977  * @tc.name: IT_POSIX_PTHREAD_141
978  * @tc.desc: function for PosixPthreadTest
979  * @tc.type: FUNC
980  */
HWTEST_F(PosixPthreadTest, ItPosixPthread141, TestSize.Level0)981 HWTEST_F(PosixPthreadTest, ItPosixPthread141, TestSize.Level0)
982 {
983     ItPosixPthread141();
984 }
985 
986 /**
987  * @tc.name: IT_POSIX_PTHREAD_142
988  * @tc.desc: function for PosixPthreadTest
989  * @tc.type: FUNC
990  */
HWTEST_F(PosixPthreadTest, ItPosixPthread142, TestSize.Level0)991 HWTEST_F(PosixPthreadTest, ItPosixPthread142, TestSize.Level0)
992 {
993     ItPosixPthread142();
994 }
995 
996 /**
997  * @tc.name: IT_POSIX_PTHREAD_144
998  * @tc.desc: function for PosixPthreadTest
999  * @tc.type: FUNC
1000  */
HWTEST_F(PosixPthreadTest, ItPosixPthread144, TestSize.Level0)1001 HWTEST_F(PosixPthreadTest, ItPosixPthread144, TestSize.Level0)
1002 {
1003     ItPosixPthread144(); // pthread_cancel
1004 }
1005 
1006 /**
1007  * @tc.name: IT_POSIX_PTHREAD_152
1008  * @tc.desc: function for PosixPthreadTest
1009  * @tc.type: FUNC
1010  */
HWTEST_F(PosixPthreadTest, ItPosixPthread152, TestSize.Level0)1011 HWTEST_F(PosixPthreadTest, ItPosixPthread152, TestSize.Level0)
1012 {
1013     ItPosixPthread152();
1014 }
1015 
1016 /**
1017  * @tc.name: IT_POSIX_PTHREAD_154
1018  * @tc.desc: function for PosixPthreadTest
1019  * @tc.type: FUNC
1020  */
HWTEST_F(PosixPthreadTest, ItPosixPthread154, TestSize.Level0)1021 HWTEST_F(PosixPthreadTest, ItPosixPthread154, TestSize.Level0)
1022 {
1023     ItPosixPthread154();
1024 }
1025 
1026 /**
1027  * @tc.name: IT_POSIX_PTHREAD_166
1028  * @tc.desc: function for PosixPthreadTest
1029  * @tc.type: FUNC
1030  */
HWTEST_F(PosixPthreadTest, ItPosixPthread166, TestSize.Level0)1031 HWTEST_F(PosixPthreadTest, ItPosixPthread166, TestSize.Level0)
1032 {
1033     ItPosixPthread166();
1034 }
1035 
1036 /**
1037  * @tc.name: IT_POSIX_PTHREAD_167
1038  * @tc.desc: function for PosixPthreadTest
1039  * @tc.type: FUNC
1040  */
HWTEST_F(PosixPthreadTest, ItPosixPthread167, TestSize.Level0)1041 HWTEST_F(PosixPthreadTest, ItPosixPthread167, TestSize.Level0)
1042 {
1043     ItPosixPthread167();
1044 }
1045 
1046 /**
1047  * @tc.name: IT_POSIX_PTHREAD_173
1048  * @tc.desc: function for PosixPthreadTest
1049  * @tc.type: FUNC
1050  */
HWTEST_F(PosixPthreadTest, ItPosixPthread173, TestSize.Level0)1051 HWTEST_F(PosixPthreadTest, ItPosixPthread173, TestSize.Level0)
1052 {
1053     ItPosixPthread173();
1054 }
1055 
1056 /**
1057  * @tc.name: IT_POSIX_PTHREAD_175
1058  * @tc.desc: function for PosixPthreadTest
1059  * @tc.type: FUNC
1060  */
HWTEST_F(PosixPthreadTest, ItPosixPthread175, TestSize.Level0)1061 HWTEST_F(PosixPthreadTest, ItPosixPthread175, TestSize.Level0)
1062 {
1063     ItPosixPthread175();
1064 }
1065 
1066 /**
1067  * @tc.name: IT_POSIX_PTHREAD_176
1068  * @tc.desc: function for PosixPthreadTest
1069  * @tc.type: FUNC
1070  */
HWTEST_F(PosixPthreadTest, ItPosixPthread176, TestSize.Level0)1071 HWTEST_F(PosixPthreadTest, ItPosixPthread176, TestSize.Level0)
1072 {
1073     ItPosixPthread176();
1074 }
1075 
1076 /**
1077  * @tc.name: IT_POSIX_PTHREAD_177
1078  * @tc.desc: function for PosixPthreadTest
1079  * @tc.type: FUNC
1080  */
HWTEST_F(PosixPthreadTest, ItPosixPthread177, TestSize.Level0)1081 HWTEST_F(PosixPthreadTest, ItPosixPthread177, TestSize.Level0)
1082 {
1083     ItPosixPthread177();
1084 }
1085 
1086 /**
1087  * @tc.name: IT_POSIX_PTHREAD_182
1088  * @tc.desc: function for PosixPthreadTest
1089  * @tc.type: FUNC
1090  */
HWTEST_F(PosixPthreadTest, ItPosixPthread182, TestSize.Level0)1091 HWTEST_F(PosixPthreadTest, ItPosixPthread182, TestSize.Level0)
1092 {
1093     ItPosixPthread182();
1094 }
1095 
1096 /**
1097  * @tc.name: IT_POSIX_PTHREAD_185
1098  * @tc.desc: function for PosixPthreadTest
1099  * @tc.type: FUNC
1100  */
HWTEST_F(PosixPthreadTest, ItPosixPthread185, TestSize.Level0)1101 HWTEST_F(PosixPthreadTest, ItPosixPthread185, TestSize.Level0)
1102 {
1103     ItPosixPthread185();
1104 }
1105 
1106 /**
1107  * @tc.name: IT_POSIX_PTHREAD_186
1108  * @tc.desc: function for PosixPthreadTest
1109  * @tc.type: FUNC
1110  */
HWTEST_F(PosixPthreadTest, ItPosixPthread186, TestSize.Level0)1111 HWTEST_F(PosixPthreadTest, ItPosixPthread186, TestSize.Level0)
1112 {
1113     ItPosixPthread186();
1114 }
1115 
1116 /**
1117  * @tc.name: IT_POSIX_PTHREAD_187
1118  * @tc.desc: function for PosixPthreadTest
1119  * @tc.type: FUNC
1120  */
HWTEST_F(PosixPthreadTest, ItPosixPthread187, TestSize.Level0)1121 HWTEST_F(PosixPthreadTest, ItPosixPthread187, TestSize.Level0)
1122 {
1123     ItPosixPthread187();
1124 }
1125 
1126 /**
1127  * @tc.name: IT_POSIX_PTHREAD_188
1128  * @tc.desc: function for PosixPthreadTest
1129  * @tc.type: FUNC
1130  */
HWTEST_F(PosixPthreadTest, ItPosixPthread188, TestSize.Level0)1131 HWTEST_F(PosixPthreadTest, ItPosixPthread188, TestSize.Level0)
1132 {
1133     ItPosixPthread188();
1134 }
1135 
1136 /**
1137  * @tc.name: IT_POSIX_PTHREAD_193
1138  * @tc.desc: function for PosixPthreadTest
1139  * @tc.type: FUNC
1140  */
HWTEST_F(PosixPthreadTest, ItPosixPthread193, TestSize.Level0)1141 HWTEST_F(PosixPthreadTest, ItPosixPthread193, TestSize.Level0)
1142 {
1143     ItPosixPthread193();
1144 }
1145 
1146 /**
1147  * @tc.name: IT_POSIX_PTHREAD_194
1148  * @tc.desc: function for PosixPthreadTest
1149  * @tc.type: FUNC
1150  */
HWTEST_F(PosixPthreadTest, ItPosixPthread194, TestSize.Level0)1151 HWTEST_F(PosixPthreadTest, ItPosixPthread194, TestSize.Level0)
1152 {
1153     ItPosixPthread194();
1154 }
1155 
1156 /**
1157  * @tc.name: IT_POSIX_PTHREAD_200
1158  * @tc.desc: function for PosixPthreadTest
1159  * @tc.type: FUNC
1160  */
HWTEST_F(PosixPthreadTest, ItPosixPthread200, TestSize.Level0)1161 HWTEST_F(PosixPthreadTest, ItPosixPthread200, TestSize.Level0)
1162 {
1163     ItPosixPthread200();
1164 }
1165 
1166 /* *
1167  * @tc.name: IT_POSIX_PTHREAD_203
1168  * @tc.desc: function for pthread concurrency
1169  * @tc.type: FUNC
1170  */
HWTEST_F(PosixPthreadTest, ItPosixPthread203, TestSize.Level0)1171 HWTEST_F(PosixPthreadTest, ItPosixPthread203, TestSize.Level0)
1172 {
1173     ItPosixPthread203();
1174 }
1175 
1176 /**
1177  * @tc.name: IT_POSIX_PTHREAD_204
1178  * @tc.desc: function for PosixPthreadTest
1179  * @tc.type: FUNC
1180  */
HWTEST_F(PosixPthreadTest, ItPosixPthread204, TestSize.Level0)1181 HWTEST_F(PosixPthreadTest, ItPosixPthread204, TestSize.Level0)
1182 {
1183     ItPosixPthread204();
1184 }
1185 
1186 /**
1187  * @tc.name: IT_POSIX_PTHREAD_205
1188  * @tc.desc: function for PosixPthreadTest
1189  * @tc.type: FUNC
1190  */
HWTEST_F(PosixPthreadTest, ItPosixPthread205, TestSize.Level0)1191 HWTEST_F(PosixPthreadTest, ItPosixPthread205, TestSize.Level0)
1192 {
1193     ItPosixPthread205();
1194 }
1195 
1196 /**
1197  * @tc.name: IT_POSIX_PTHREAD_206
1198  * @tc.desc: function for PosixPthreadTest
1199  * @tc.type: FUNC
1200  */
HWTEST_F(PosixPthreadTest, ItPosixPthread206, TestSize.Level0)1201 HWTEST_F(PosixPthreadTest, ItPosixPthread206, TestSize.Level0)
1202 {
1203     ItPosixPthread206();
1204 }
1205 
1206 /**
1207  * @tc.name: IT_POSIX_PTHREAD_209
1208  * @tc.desc: function for PosixPthreadTest
1209  * @tc.type: FUNC
1210  */
HWTEST_F(PosixPthreadTest, ItPosixPthread209, TestSize.Level0)1211 HWTEST_F(PosixPthreadTest, ItPosixPthread209, TestSize.Level0)
1212 {
1213     ItPosixPthread209();
1214 }
1215 
1216 /**
1217  * @tc.name: IT_POSIX_PTHREAD_213
1218  * @tc.desc: function for PosixPthreadTest
1219  * @tc.type: FUNC
1220  */
HWTEST_F(PosixPthreadTest, ItPosixPthread213, TestSize.Level0)1221 HWTEST_F(PosixPthreadTest, ItPosixPthread213, TestSize.Level0)
1222 {
1223     ItPosixPthread213();
1224 }
1225 
1226 /**
1227  * @tc.name: IT_POSIX_PTHREAD_217
1228  * @tc.desc: function for PosixPthreadTest
1229  * @tc.type: FUNC
1230  */
HWTEST_F(PosixPthreadTest, ItPosixPthread217, TestSize.Level0)1231 HWTEST_F(PosixPthreadTest, ItPosixPthread217, TestSize.Level0)
1232 {
1233     ItPosixPthread217(); // phthread_key_create
1234 }
1235 
1236 /**
1237  * @tc.name: IT_POSIX_PTHREAD_218
1238  * @tc.desc: function for PosixPthreadTest
1239  * @tc.type: FUNC
1240  */
HWTEST_F(PosixPthreadTest, ItPosixPthread218, TestSize.Level0)1241 HWTEST_F(PosixPthreadTest, ItPosixPthread218, TestSize.Level0)
1242 {
1243     ItPosixPthread218(); // phthread_key_create
1244 }
1245 
1246 /**
1247  * @tc.name: IT_POSIX_PTHREAD_224
1248  * @tc.desc: function for PosixPthreadTest
1249  * @tc.type: FUNC
1250  */
HWTEST_F(PosixPthreadTest, ItPosixPthread224, TestSize.Level0)1251 HWTEST_F(PosixPthreadTest, ItPosixPthread224, TestSize.Level0)
1252 {
1253     ItPosixPthread224(); // pthread_key_create
1254 }
1255 
1256 /**
1257  * @tc.name: IT_POSIX_PTHREAD_226
1258  * @tc.desc: function for PosixPthreadTest
1259  * @tc.type: FUNC
1260  */
HWTEST_F(PosixPthreadTest, ItPosixPthread226, TestSize.Level0)1261 HWTEST_F(PosixPthreadTest, ItPosixPthread226, TestSize.Level0)
1262 {
1263     ItPosixPthread226(); // pthread_key
1264 }
1265 
1266 /**
1267  * @tc.name: IT_POSIX_PTHREAD_233
1268  * @tc.desc: function for PosixPthreadTest
1269  * @tc.type: FUNC
1270  */
HWTEST_F(PosixPthreadTest, ItPosixPthread233, TestSize.Level0)1271 HWTEST_F(PosixPthreadTest, ItPosixPthread233, TestSize.Level0)
1272 {
1273     ItPosixPthread233(); // pthread_key and pthread_cancel
1274 }
1275 
1276 /**
1277  * @tc.name: IT_POSIX_PTHREAD_238
1278  * @tc.desc: function for PosixPthreadTest
1279  * @tc.type: FUNC
1280  */
HWTEST_F(PosixPthreadTest, ItPosixPthread238, TestSize.Level0)1281 HWTEST_F(PosixPthreadTest, ItPosixPthread238, TestSize.Level0)
1282 {
1283     ItPosixPthread238(); // pthread_cancel
1284 }
1285 
1286 /**
1287  * @tc.name: IT_POSIX_PTHREAD_239
1288  * @tc.desc: function for PosixPthreadTest
1289  * @tc.type: FUNC
1290  */
HWTEST_F(PosixPthreadTest, ItPosixPthread239, TestSize.Level0)1291 HWTEST_F(PosixPthreadTest, ItPosixPthread239, TestSize.Level0)
1292 {
1293     ItPosixPthread239(); // pthread_cancel
1294 }
1295 
1296 /**
1297  * @tc.name: IT_POSIX_PTHREAD_240
1298  * @tc.desc: function for PosixPthreadTest
1299  * @tc.type: FUNC
1300  */
HWTEST_F(PosixPthreadTest, ItPosixPthread240, TestSize.Level0)1301 HWTEST_F(PosixPthreadTest, ItPosixPthread240, TestSize.Level0)
1302 {
1303     ItPosixPthread240(); // pthread_cancel
1304 }
1305 
1306 /**
1307  * @tc.name: IT_POSIX_PTHREAD_241
1308  * @tc.desc: function for PosixPthreadTest
1309  * @tc.type: FUNC
1310  */
HWTEST_F(PosixPthreadTest, ItPosixPthread241, TestSize.Level0)1311 HWTEST_F(PosixPthreadTest, ItPosixPthread241, TestSize.Level0)
1312 {
1313     ItPosixPthread241(); // pthread_cancel
1314 }
1315 #endif
1316 
1317 } // namespace OHOS
1318