• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import { beforeEach, describe, expect, it } from '@ohos/hypium'
17import Utils from './Utils'
18import pthread from 'libpthreadndk1.so'
19
20export default function muslPThreadNdk1Test() {
21  describe('MuslPThread1Test', () => {
22
23    beforeEach(async () => {
24      await Utils.sleep(50)
25    })
26
27    /**
28     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATFORK_0100
29     * @tc.name       : testMuslPThreadPThreadAtFork001
30     * @tc.desc       : test pthread_atfork
31     * @tc.size       : MediumTest
32     * @tc.type       : Function
33     * @tc.level      : Level 2
34     */
35    it('testMuslPThreadPThreadAtFork001', 0, async (done: Function) => {
36      expect(pthread.pThreadAtFork()).assertEqual(0);
37      done()
38    });
39
40    /**
41     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_DESTROY_0100
42     * @tc.name       : testMuslPThreadPThreadAttrDestroy001
43     * @tc.desc       : test pthread_attr_destroy
44     * @tc.size       : MediumTest
45     * @tc.type       : Function
46     * @tc.level      : Level 2
47     */
48    it('testMuslPThreadPThreadAttrDestroy001', 0, async (done: Function) => {
49      expect(pthread.pThreadAttrDestroy()).assertEqual(0);
50      done()
51    });
52
53    /**
54     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETDETACHSTATE_0100
55     * @tc.name       : testMuslPThreadPThreadAttrGetDetachState001
56     * @tc.desc       : test pthread_attr_getdetachstate
57     * @tc.size       : MediumTest
58     * @tc.type       : Function
59     * @tc.level      : Level 2
60     */
61    it('testMuslPThreadPThreadAttrGetDetachState001', 0, async (done: Function) => {
62      expect(pthread.pThreadAttrGetDetachState()).assertEqual(0);
63      done()
64    });
65
66    /**
67     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETGUARDSIZE_0100
68     * @tc.name       : testMuslPThreadPThreadAttrGetGuardSize001
69     * @tc.desc       : test pthread_attr_getguardsize
70     * @tc.size       : MediumTest
71     * @tc.type       : Function
72     * @tc.level      : Level 2
73     */
74    it('testMuslPThreadPThreadAttrGetGuardSize001', 0, async (done: Function) => {
75      expect(pthread.pThreadAttrGetGuardSize()).assertEqual(0);
76      done()
77    });
78
79    /**
80     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETINHERITSCHED_0100
81     * @tc.name       : testMuslPThreadPThreadAttrGetInheritSched001
82     * @tc.desc       : test pthread_attr_getinheritsched
83     * @tc.size       : MediumTest
84     * @tc.type       : Function
85     * @tc.level      : Level 2
86     */
87    it('testMuslPThreadPThreadAttrGetInheritSched001', 0, async (done: Function) => {
88      expect(pthread.pThreadAttrGetInheritSched()).assertEqual(0);
89      done()
90    });
91
92    /**
93     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETSCHEDPARAM_0100
94     * @tc.name       : testMuslPThreadPThreadAttrGetSchedParam001
95     * @tc.desc       : test pthread_attr_getschedparam
96     * @tc.size       : MediumTest
97     * @tc.type       : Function
98     * @tc.level      : Level 2
99     */
100    it('testMuslPThreadPThreadAttrGetSchedParam001', 0, async (done: Function) => {
101      expect(pthread.pThreadAttrGetSchedParam()).assertEqual(0);
102      done()
103    });
104
105    /**
106     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETSCHEDPOLICY_0100
107     * @tc.name       : testMuslPThreadPThreadAttrGetSchedPolicy001
108     * @tc.desc       : test pthread_attr_getschedpolicy
109     * @tc.size       : MediumTest
110     * @tc.type       : Function
111     * @tc.level      : Level 2
112     */
113    it('testMuslPThreadPThreadAttrGetSchedPolicy001', 0, async (done: Function) => {
114      expect(pthread.pThreadAttrGetSchedPolicy()).assertEqual(0);
115      done()
116    });
117
118    /**
119     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETSCOPE_0100
120     * @tc.name       : testMuslPThreadPThreadAttrGetScope001
121     * @tc.desc       : test pthread_attr_getscope
122     * @tc.size       : MediumTest
123     * @tc.type       : Function
124     * @tc.level      : Level 2
125     */
126    it('testMuslPThreadPThreadAttrGetScope001', 0, async (done: Function) => {
127      expect(pthread.pThreadAttrGetScope()).assertEqual(0);
128      done()
129    });
130
131    /**
132     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETSTACK_0100
133     * @tc.name       : testMuslPThreadPThreadAttrGetStack001
134     * @tc.desc       : test pthread_attr_getstack
135     * @tc.size       : MediumTest
136     * @tc.type       : Function
137     * @tc.level      : Level 2
138     */
139    it('testMuslPThreadPThreadAttrGetStack001', 0, async (done: Function) => {
140      expect(pthread.pThreadAttrGetStack()).assertEqual(0);
141      done()
142    });
143
144    /**
145     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_GETSTACKSIZE_0100
146     * @tc.name       : testMuslPThreadPThreadAttrGetStackSize001
147     * @tc.desc       : test pthread_attr_getstacksize
148     * @tc.size       : MediumTest
149     * @tc.type       : Function
150     * @tc.level      : Level 2
151     */
152    it('testMuslPThreadPThreadAttrGetStackSize001', 0, async (done: Function) => {
153      expect(pthread.pThreadAttrGetStackSize()).assertEqual(0);
154      done()
155    });
156
157    /**
158     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_INIT_0100
159     * @tc.name       : testMuslPThreadPThreadAttrInit001
160     * @tc.desc       : test pthread_attr_init
161     * @tc.size       : MediumTest
162     * @tc.type       : Function
163     * @tc.level      : Level 2
164     */
165    it('testMuslPThreadPThreadAttrInit001', 0, async (done: Function) => {
166      expect(pthread.pThreadAttrInit()).assertEqual(0);
167      done()
168    });
169
170    /**
171     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETDETACHSTATE_0100
172     * @tc.name       : testMuslPThreadPThreadAttrSetDetachState001
173     * @tc.desc       : test pthread_attr_setdetachstate
174     * @tc.size       : MediumTest
175     * @tc.type       : Function
176     * @tc.level      : Level 2
177     */
178    it('testMuslPThreadPThreadAttrSetDetachState001', 0, async (done: Function) => {
179      expect(pthread.pThreadAttrSetDetachState_One()).assertEqual(0);
180      done()
181    });
182
183    /**
184     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETDETACHSTATE_0200
185     * @tc.name       : testMuslPThreadPThreadAttrSetDetachState002
186     * @tc.desc       : test pthread_attr_setdetachstate
187     * @tc.size       : MediumTest
188     * @tc.type       : Function
189     * @tc.level      : Level 2
190     */
191    it('testMuslPThreadPThreadAttrSetDetachState002', 0, async (done: Function) => {
192      expect(pthread.pThreadAttrSetDetachState_Two()).assertEqual(22);
193      done()
194    });
195
196    /**
197     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETGUARDSIZE_0100
198     * @tc.name       : testMuslPThreadPThreadAttrSetGuardSize001
199     * @tc.desc       : test pthread_attr_setguardsize
200     * @tc.size       : MediumTest
201     * @tc.type       : Function
202     * @tc.level      : Level 2
203     */
204    it('testMuslPThreadPThreadAttrSetGuardSize001', 0, async (done: Function) => {
205      expect(pthread.pThreadAttrSetGuardSize_One()).assertEqual(0);
206      done()
207    });
208
209    /**
210     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETGUARDSIZE_0200
211     * @tc.name       : testMuslPThreadPThreadAttrSetGuardSize002
212     * @tc.desc       : test pthread_attr_setguardsize
213     * @tc.size       : MediumTest
214     * @tc.type       : Function
215     * @tc.level      : Level 2
216     */
217    it('testMuslPThreadPThreadAttrSetGuardSize002', 0, async (done: Function) => {
218      expect(pthread.pThreadAttrSetGuardSize_Two()).assertEqual(22);
219      done()
220    });
221
222    /**
223     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETINHERITSCHED_0100
224     * @tc.name       : testMuslPThreadPThreadAttrSetInheritSched001
225     * @tc.desc       : test pthread_attr_setinheritsched
226     * @tc.size       : MediumTest
227     * @tc.type       : Function
228     * @tc.level      : Level 2
229     */
230    it('testMuslPThreadPThreadAttrSetInheritSched001', 0, async (done: Function) => {
231      expect(pthread.pThreadAttrSetInheritSched_One()).assertEqual(0);
232      done()
233    });
234
235    /**
236     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETINHERITSCHED_0200
237     * @tc.name       : testMuslPThreadPThreadAttrSetInheritSched002
238     * @tc.desc       : test pthread_attr_setinheritsched
239     * @tc.size       : MediumTest
240     * @tc.type       : Function
241     * @tc.level      : Level 2
242     */
243    it('testMuslPThreadPThreadAttrSetInheritSched002', 0, async (done: Function) => {
244      expect(pthread.pThreadAttrSetInheritSched_Two()).assertEqual(22);
245      done()
246    });
247
248    /**
249     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSCHEDPARAM_0100
250     * @tc.name       : testMuslPThreadPThreadAttrSetSchedParam001
251     * @tc.desc       : test pthread_attr_setschedparam
252     * @tc.size       : MediumTest
253     * @tc.type       : Function
254     * @tc.level      : Level 2
255     */
256    it('testMuslPThreadPThreadAttrSetSchedParam001', 0, async (done: Function) => {
257      expect(pthread.pThreadAttrSetSchedParam()).assertEqual(0);
258      done()
259    });
260
261    /**
262     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSCHEDPOLICY_0100
263     * @tc.name       : testMuslPThreadPThreadAttrSetSchedPolicy001
264     * @tc.desc       : test pthread_attr_setschedpolicy
265     * @tc.size       : MediumTest
266     * @tc.type       : Function
267     * @tc.level      : Level 2
268     */
269    it('testMuslPThreadPThreadAttrSetSchedPolicy001', 0, async (done: Function) => {
270      expect(pthread.pThreadAttrSetSchedPolicy()).assertEqual(0);
271      done()
272    });
273
274    /**
275     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSCOPE_0100
276     * @tc.name       : testMuslPThreadPThreadAttrSetScope001
277     * @tc.desc       : test pthread_attr_setscope
278     * @tc.size       : MediumTest
279     * @tc.type       : Function
280     * @tc.level      : Level 2
281     */
282    it('testMuslPThreadPThreadAttrSetScope001', 0, async (done: Function) => {
283      expect(pthread.pThreadAttrSetScope_One()).assertEqual(0);
284      done()
285    });
286
287    /**
288     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSCOPE_0200
289     * @tc.name       : testMuslPThreadPThreadAttrSetScope002
290     * @tc.desc       : test pthread_attr_setscope
291     * @tc.size       : MediumTest
292     * @tc.type       : Function
293     * @tc.level      : Level 2
294     */
295    it('testMuslPThreadPThreadAttrSetScope002', 0, async (done: Function) => {
296      expect(pthread.pThreadAttrSetScope_Two()).assertEqual(22);
297      done()
298    });
299
300    /**
301     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSTACK_0100
302     * @tc.name       : testMuslPThreadPThreadAttrSetStack001
303     * @tc.desc       : test pthread_attr_setstack
304     * @tc.size       : MediumTest
305     * @tc.type       : Function
306     * @tc.level      : Level 2
307     */
308    it('testMuslPThreadPThreadAttrSetStack001', 0, async (done: Function) => {
309      expect(pthread.pThreadAttrSetStack_One()).assertEqual(0);
310      done()
311    });
312
313    /**
314     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSTACK_0200
315     * @tc.name       : testMuslPThreadPThreadAttrSetStack002
316     * @tc.desc       : test pthread_attr_setstack
317     * @tc.size       : MediumTest
318     * @tc.type       : Function
319     * @tc.level      : Level 2
320     */
321    it('testMuslPThreadPThreadAttrSetStack002', 0, async (done: Function) => {
322      expect(pthread.pThreadAttrSetStack_Two()).assertEqual(22);
323      done()
324    });
325
326    /**
327     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSTACK_0300
328     * @tc.name       : testMuslPThreadPThreadAttrSetStack003
329     * @tc.desc       : test pthread_attr_setstack
330     * @tc.size       : MediumTest
331     * @tc.type       : Function
332     * @tc.level      : Level 2
333     */
334    it('testMuslPThreadPThreadAttrSetStack003', 0, async (done: Function) => {
335      expect(pthread.pThreadAttrSetStack_Three()).assertEqual(22);
336      done()
337    });
338
339    /**
340     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSTACKSIZE_0100
341     * @tc.name       : testMuslPThreadPThreadAttrSetStackSize001
342     * @tc.desc       : test pthread_attr_setstacksize
343     * @tc.size       : MediumTest
344     * @tc.type       : Function
345     * @tc.level      : Level 2
346     */
347    it('testMuslPThreadPThreadAttrSetStackSize001', 0, async (done: Function) => {
348      expect(pthread.pThreadAttrSetStackSize_One()).assertEqual(0);
349      done()
350    });
351
352    /**
353     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ATTR_SETSTACKSIZE_0200
354     * @tc.name       : testMuslPThreadPThreadAttrSetStackSize002
355     * @tc.desc       : test pthread_attr_setstacksize
356     * @tc.size       : MediumTest
357     * @tc.type       : Function
358     * @tc.level      : Level 2
359     */
360    it('testMuslPThreadPThreadAttrSetStackSize002', 0, async (done: Function) => {
361      expect(pthread.pThreadAttrSetStackSize_Two()).assertEqual(22);
362      done()
363    });
364
365    /**
366     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIER_DESTROY_0100
367     * @tc.name       : testMuslPThreadPThreadBarrierDestroy001
368     * @tc.desc       : test pthread_barrier_destroy
369     * @tc.size       : MediumTest
370     * @tc.type       : Function
371     * @tc.level      : Level 2
372     */
373    it('testMuslPThreadPThreadBarrierDestroy001', 0, async (done: Function) => {
374      expect(pthread.pThreadBarrierDestroy()).assertEqual(0);
375      done()
376    });
377
378    /**
379     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIER_INIT_0100
380     * @tc.name       : testMuslPThreadPThreadBarrierInit001
381     * @tc.desc       : test pthread_barrier_init
382     * @tc.size       : MediumTest
383     * @tc.type       : Function
384     * @tc.level      : Level 2
385     */
386    it('testMuslPThreadPThreadBarrierInit001', 0, async (done: Function) => {
387      expect(pthread.pThreadBarrierInit()).assertEqual(0);
388      done()
389    });
390
391    /**
392     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIER_WAIT_0100
393     * @tc.name       : testMuslPThreadPThreadBarrierWait001
394     * @tc.desc       : test pthread_barrier_wait
395     * @tc.size       : MediumTest
396     * @tc.type       : Function
397     * @tc.level      : Level 2
398     */
399    it('testMuslPThreadPThreadBarrierWait001', 0, async (done: Function) => {
400      expect(pthread.pThreadBarrierWait()).assertEqual(-1);
401      done()
402    });
403
404    /**
405     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIERATTR_DESTROY_0100
406     * @tc.name       : testMuslPThreadPThreadBarrierAttrDestroy001
407     * @tc.desc       : test pthread_barrierattr_destroy
408     * @tc.size       : MediumTest
409     * @tc.type       : Function
410     * @tc.level      : Level 2
411     */
412    it('testMuslPThreadPThreadBarrierAttrDestroy001', 0, async (done: Function) => {
413      expect(pthread.pThreadBarrierAttrDestroy()).assertEqual(0);
414      done()
415    });
416
417    /**
418     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIERATTR_INIT_0100
419     * @tc.name       : testMuslPThreadPThreadBarrierAttrInit001
420     * @tc.desc       : test pthread_barrierattr_init
421     * @tc.size       : MediumTest
422     * @tc.type       : Function
423     * @tc.level      : Level 2
424     */
425    it('testMuslPThreadPThreadBarrierAttrInit001', 0, async (done: Function) => {
426      expect(pthread.pThreadBarrierAttrInit()).assertEqual(0);
427      done()
428    });
429
430    /**
431     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIERATTR_GETPSHARED_0100
432     * @tc.name       : testMuslPThreadPThreadBarrierAttrGetPShared001
433     * @tc.desc       : test pthread_barrierattr_getpshared
434     * @tc.size       : MediumTest
435     * @tc.type       : Function
436     * @tc.level      : Level 2
437     */
438    it('testMuslPThreadPThreadBarrierAttrGetPShared001', 0, async (done: Function) => {
439      expect(pthread.pThreadBarrierAttrGetPShared()).assertEqual(0);
440      done()
441    });
442
443    /**
444     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_BARRIERATTR_SETPSHARED_0100
445     * @tc.name       : testMuslPThreadPThreadBarrierAttrSetPShared001
446     * @tc.desc       : test pthread_barrierattr_setpshared
447     * @tc.size       : MediumTest
448     * @tc.type       : Function
449     * @tc.level      : Level 2
450     */
451    it('testMuslPThreadPThreadBarrierAttrSetPShared001', 0, async (done: Function) => {
452      expect(pthread.pThreadBarrierAttrSetPShared()).assertEqual(0);
453      done()
454    });
455
456    /**
457     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_COND_BROADCAST_0100
458     * @tc.name       : testMuslPThreadPThreadCondBroadcast001
459     * @tc.desc       : test pthread_cond_broadcast
460     * @tc.size       : MediumTest
461     * @tc.type       : Function
462     * @tc.level      : Level 2
463     */
464    it('testMuslPThreadPThreadCondBroadcast001', 0, async (done: Function) => {
465      expect(pthread.pThreadCondBroadcast()).assertEqual(0);
466      done()
467    });
468
469    /**
470     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_COND_DESTROY_0100
471     * @tc.name       : testMuslPThreadPThreadCondDestroy001
472     * @tc.desc       : test pthread_cond_destroy
473     * @tc.size       : MediumTest
474     * @tc.type       : Function
475     * @tc.level      : Level 2
476     */
477    it('testMuslPThreadPThreadCondDestroy001', 0, async (done: Function) => {
478      expect(pthread.pThreadCondDestroy()).assertEqual(0);
479      done()
480    });
481
482    /**
483     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_COND_INIT_0100
484     * @tc.name       : testMuslPThreadPThreadCondInit001
485     * @tc.desc       : test pthread_cond_init
486     * @tc.size       : MediumTest
487     * @tc.type       : Function
488     * @tc.level      : Level 2
489     */
490    it('testMuslPThreadPThreadCondInit001', 0, async (done: Function) => {
491      expect(pthread.pThreadCondInit()).assertEqual(0);
492      done()
493    });
494
495    /**
496     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_COND_SIGNAL_0100
497     * @tc.name       : testMuslPThreadPThreadCondSignal001
498     * @tc.desc       : test pthread_cond_signal
499     * @tc.size       : MediumTest
500     * @tc.type       : Function
501     * @tc.level      : Level 2
502     */
503    it('testMuslPThreadPThreadCondSignal001', 0, async (done: Function) => {
504      expect(pthread.pThreadCondSignal()).assertEqual(0);
505      done()
506    });
507
508    /**
509     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_COND_WAIT_0100
510     * @tc.name       : testMuslPThreadPThreadCondWait001
511     * @tc.desc       : test pthread_cond_wait
512     * @tc.size       : MediumTest
513     * @tc.type       : Function
514     * @tc.level      : Level 2
515     */
516    it('testMuslPThreadPThreadCondWait001', 0, async (done: Function) => {
517      expect(pthread.pThreadCondWait()).assertEqual(0);
518      done()
519    });
520
521    /**
522     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CONDATTR_DESTROY_0100
523     * @tc.name       : testMuslPThreadPThreadCondAttrDestroy001
524     * @tc.desc       : test pthread_condattr_destroy
525     * @tc.size       : MediumTest
526     * @tc.type       : Function
527     * @tc.level      : Level 2
528     */
529    it('testMuslPThreadPThreadCondAttrDestroy001', 0, async (done: Function) => {
530      expect(pthread.pThreadCondAttrDestroy()).assertEqual(0);
531      done()
532    });
533
534    /**
535     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CONDATTR_GETCLOCK_0100
536     * @tc.name       : testMuslPThreadPThreadCondAttrGetClock001
537     * @tc.desc       : test pthread_condattr_getclock
538     * @tc.size       : MediumTest
539     * @tc.type       : Function
540     * @tc.level      : Level 2
541     */
542    it('testMuslPThreadPThreadCondAttrGetClock001', 0, async (done: Function) => {
543      expect(pthread.pThreadCondAttrGetClock()).assertEqual(0);
544      done()
545    });
546
547    /**
548     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CONDATTR_GETPSHARED_0100
549     * @tc.name       : testMuslPThreadPThreadCondAttrGetPShared001
550     * @tc.desc       : test pthread_condattr_getpshared
551     * @tc.size       : MediumTest
552     * @tc.type       : Function
553     * @tc.level      : Level 2
554     */
555    it('testMuslPThreadPThreadCondAttrGetPShared001', 0, async (done: Function) => {
556      expect(pthread.pThreadCondAttrGetPShared()).assertEqual(0);
557      done()
558    });
559
560    /**
561     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CONDATTR_INIT_0100
562     * @tc.name       : testMuslPThreadPThreadCondAttrInit001
563     * @tc.desc       : test pthread_condattr_init
564     * @tc.size       : MediumTest
565     * @tc.type       : Function
566     * @tc.level      : Level 2
567     */
568    it('testMuslPThreadPThreadCondAttrInit001', 0, async (done: Function) => {
569      expect(pthread.pThreadCondAttrInit()).assertEqual(0);
570      done()
571    });
572
573    /**
574     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CONDATTR_SETCLOCK_0100
575     * @tc.name       : testMuslPThreadPThreadCondAttrSetClock001
576     * @tc.desc       : test pthread_condattr_setclock
577     * @tc.size       : MediumTest
578     * @tc.type       : Function
579     * @tc.level      : Level 2
580     */
581    it('testMuslPThreadPThreadCondAttrSetClock001', 0, async (done: Function) => {
582      expect(pthread.pThreadCondAttrSetClock()).assertEqual(0);
583      done()
584    });
585
586    /**
587     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CONDATTR_SETPSHARED_0100
588     * @tc.name       : testMuslPThreadPThreadCondAttrSetPShared001
589     * @tc.desc       : test pthread_condattr_setpshared
590     * @tc.size       : MediumTest
591     * @tc.type       : Function
592     * @tc.level      : Level 2
593     */
594    it('testMuslPThreadPThreadCondAttrSetPShared001', 0, async (done: Function) => {
595      expect(pthread.pThreadCondAttrSetPShared()).assertEqual(0);
596      done()
597    });
598
599    /**
600     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_CREATE_0100
601     * @tc.name       : testMuslPThreadPThreadCreate001
602     * @tc.desc       : test pthread_create
603     * @tc.size       : MediumTest
604     * @tc.type       : Function
605     * @tc.level      : Level 2
606     */
607    it('testMuslPThreadPThreadCreate001', 0, async (done: Function) => {
608      expect(pthread.pThreadCreate()).assertEqual(0);
609      done()
610    });
611
612    /**
613     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_DETACH_0100
614     * @tc.name       : testMuslPThreadPThreadDetach001
615     * @tc.desc       : test pthread_detach
616     * @tc.size       : MediumTest
617     * @tc.type       : Function
618     * @tc.level      : Level 2
619     */
620    it('testMuslPThreadPThreadDetach001', 0, async (done: Function) => {
621      expect(pthread.pThreadDetach()).assertEqual(0);
622      done()
623    });
624
625    /**
626     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_EQUAL_0100
627     * @tc.name       : testMuslPThreadPThreadEqual001
628     * @tc.desc       : test pthread_equal
629     * @tc.size       : MediumTest
630     * @tc.type       : Function
631     * @tc.level      : Level 2
632     */
633    it('testMuslPThreadPThreadEqual001', 0, async (done: Function) => {
634      expect(pthread.pThreadEqual()).assertEqual(1);
635      done()
636    });
637
638    /**
639     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_EXIT_0100
640     * @tc.name       : testMuslPThreadPThreadExit001
641     * @tc.desc       : test pthread_exit
642     * @tc.size       : MediumTest
643     * @tc.type       : Function
644     * @tc.level      : Level 2
645     */
646    it('testMuslPThreadPThreadExit001', 0, async (done: Function) => {
647      expect(pthread.pThreadExit()).assertEqual(0);
648      done()
649    });
650
651    /**
652     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_GETATTR_NP_0100
653     * @tc.name       : testMuslPThreadPThreadGetAttrNp001
654     * @tc.desc       : test pthread_getattr_np
655     * @tc.size       : MediumTest
656     * @tc.type       : Function
657     * @tc.level      : Level 2
658     */
659    it('testMuslPThreadPThreadGetAttrNp001', 0, async (done: Function) => {
660      expect(pthread.pThreadGetAttrNp()).assertEqual(0);
661      done()
662    });
663
664    /**
665     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_GETCPUCLOCKID_0100
666     * @tc.name       : testMuslPThreadPThreadGetCpuClockId001
667     * @tc.desc       : test pthread_getcpuclockid
668     * @tc.size       : MediumTest
669     * @tc.type       : Function
670     * @tc.level      : Level 2
671     */
672    it('testMuslPThreadPThreadGetCpuClockId001', 0, async (done: Function) => {
673      expect(pthread.pThreadGetCpuClockId()).assertEqual(0);
674      done()
675    });
676
677    /**
678     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_GETSCHEDPARAM_0100
679     * @tc.name       : testMuslPThreadPThreadGetSchedParam001
680     * @tc.desc       : test pthread_getschedparam
681     * @tc.size       : MediumTest
682     * @tc.type       : Function
683     * @tc.level      : Level 2
684     */
685    it('testMuslPThreadPThreadGetSchedParam001', 0, async (done: Function) => {
686      expect(pthread.pThreadGetSchedParam()).assertEqual(0);
687      done()
688    });
689
690    /**
691     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_GETSPECIFIC_0100
692     * @tc.name       : testMuslPThreadPThreadGetSpecific001
693     * @tc.desc       : test pthread_getspecific
694     * @tc.size       : MediumTest
695     * @tc.type       : Function
696     * @tc.level      : Level 2
697     */
698    it('testMuslPThreadPThreadGetSpecific001', 0, async (done: Function) => {
699      expect(pthread.pThreadGetSpecific()).assertEqual(0);
700      done()
701    });
702
703    /**
704     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_JOIN_0100
705     * @tc.name       : testMuslPThreadPThreadJoin001
706     * @tc.desc       : test pthread_join
707     * @tc.size       : MediumTest
708     * @tc.type       : Function
709     * @tc.level      : Level 2
710     */
711    it('testMuslPThreadPThreadJoin001', 0, async (done: Function) => {
712      expect(pthread.pThreadJoin()).assertEqual(0);
713      done()
714    });
715
716    /**
717     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_KEY_CREATE_0100
718     * @tc.name       : testMuslPThreadPThreadKeyCreate001
719     * @tc.desc       : test pthread_key_create
720     * @tc.size       : MediumTest
721     * @tc.type       : Function
722     * @tc.level      : Level 2
723     */
724    it('testMuslPThreadPThreadKeyCreate001', 0, async (done: Function) => {
725      expect(pthread.pThreadKeyCreate()).assertEqual(0);
726      done()
727    });
728
729    /**
730     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_KEY_DELETE_0100
731     * @tc.name       : testMuslPThreadPThreadKeyDelete001
732     * @tc.desc       : test pthread_key_delete
733     * @tc.size       : MediumTest
734     * @tc.type       : Function
735     * @tc.level      : Level 2
736     */
737    it('testMuslPThreadPThreadKeyDelete001', 0, async (done: Function) => {
738      expect(pthread.pThreadKeyDelete()).assertEqual(0);
739      done()
740    });
741
742    /**
743     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEX_DESTROY_0100
744     * @tc.name       : testMuslPThreadPThreadMutexDestroy001
745     * @tc.desc       : test pthread_mutex_destroy
746     * @tc.size       : MediumTest
747     * @tc.type       : Function
748     * @tc.level      : Level 2
749     */
750    it('testMuslPThreadPThreadMutexDestroy001', 0, async (done: Function) => {
751      expect(pthread.pThreadMutexDestroy()).assertEqual(0);
752      done()
753    });
754
755    /**
756     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEX_INIT_0100
757     * @tc.name       : testMuslPThreadPThreadMutexInit001
758     * @tc.desc       : test pthread_mutex_init
759     * @tc.size       : MediumTest
760     * @tc.type       : Function
761     * @tc.level      : Level 2
762     */
763    it('testMuslPThreadPThreadMutexInit001', 0, async (done: Function) => {
764      expect(pthread.pThreadMutexInit()).assertEqual(0);
765      done()
766    });
767
768    /**
769     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEX_LOCK_0100
770     * @tc.name       : testMuslPThreadPThreadMutexLock001
771     * @tc.desc       : test pthread_mutex_lock
772     * @tc.size       : MediumTest
773     * @tc.type       : Function
774     * @tc.level      : Level 2
775     */
776    it('testMuslPThreadPThreadMutexLock001', 0, async (done: Function) => {
777      expect(pthread.pThreadMutexLock()).assertEqual(0);
778      done()
779    });
780
781    /**
782     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEX_TIMEDLOCK_0100
783     * @tc.name       : testMuslPThreadPThreadMutexTimedLock001
784     * @tc.desc       : test pthread_mutex_timedlock
785     * @tc.size       : MediumTest
786     * @tc.type       : Function
787     * @tc.level      : Level 2
788     */
789    it('testMuslPThreadPThreadMutexTimedLock001', 0, async (done: Function) => {
790      expect(pthread.pThreadMutexTimedLock()).assertEqual(0);
791      done()
792    });
793
794    /**
795     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEX_TRYLOCK_0100
796     * @tc.name       : testMuslPThreadPThreadMutexTryLock001
797     * @tc.desc       : test pthread_mutex_trylock
798     * @tc.size       : MediumTest
799     * @tc.type       : Function
800     * @tc.level      : Level 2
801     */
802    it('testMuslPThreadPThreadMutexTryLock001', 0, async (done: Function) => {
803      expect(pthread.pThreadMutexTryLock()).assertEqual(0);
804      done()
805    });
806
807    /**
808     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEX_UNLOCK_0100
809     * @tc.name       : testMuslPThreadPThreadMutexUnLock001
810     * @tc.desc       : test pthread_mutex_unlock
811     * @tc.size       : MediumTest
812     * @tc.type       : Function
813     * @tc.level      : Level 2
814     */
815    it('testMuslPThreadPThreadMutexUnLock001', 0, async (done: Function) => {
816      expect(pthread.pThreadMutexUnlock()).assertEqual(0);
817      done()
818    });
819
820    /**
821     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_DESTROY_0100
822     * @tc.name       : testMuslPThreadPThreadMutexAttrDestroy001
823     * @tc.desc       : test pthread_mutexattr_destroy
824     * @tc.size       : MediumTest
825     * @tc.type       : Function
826     * @tc.level      : Level 2
827     */
828    it('testMuslPThreadPThreadMutexAttrDestroy001', 0, async (done: Function) => {
829      expect(pthread.pThreadMutexAttrDestroy()).assertEqual(0);
830      done()
831    });
832
833    /**
834     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_GETPROTOCOL_0100
835     * @tc.name       : testMuslPThreadPThreadMutexAttrGetProtocol001
836     * @tc.desc       : test pthread_mutexattr_getprotocol
837     * @tc.size       : MediumTest
838     * @tc.type       : Function
839     * @tc.level      : Level 2
840     */
841    it('testMuslPThreadPThreadMutexAttrGetProtocol001', 0, async (done: Function) => {
842      expect(pthread.pThreadMutexAttrGetProtocol()).assertEqual(0);
843      done()
844    });
845
846    /**
847     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_GETPSHARED_0100
848     * @tc.name       : testMuslPThreadPThreadMutexAttrGetPShared001
849     * @tc.desc       : test pthread_mutexattr_getpshared
850     * @tc.size       : MediumTest
851     * @tc.type       : Function
852     * @tc.level      : Level 2
853     */
854    it('testMuslPThreadPThreadMutexAttrGetPShared001', 0, async (done: Function) => {
855      expect(pthread.pThreadMutexAttrGetPShared()).assertEqual(0);
856      done()
857    });
858
859    /**
860     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_GETTYPE_0100
861     * @tc.name       : testMuslPThreadPThreadMutexAttrGetType001
862     * @tc.desc       : test pthread_mutexattr_gettype
863     * @tc.size       : MediumTest
864     * @tc.type       : Function
865     * @tc.level      : Level 2
866     */
867    it('testMuslPThreadPThreadMutexAttrGetType001', 0, async (done: Function) => {
868      expect(pthread.pThreadMutexAttrGetType()).assertEqual(0);
869      done()
870    });
871
872    /**
873     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_INIT_0100
874     * @tc.name       : testMuslPThreadPThreadMutexAttrInit001
875     * @tc.desc       : test pthread_mutexattr_init
876     * @tc.size       : MediumTest
877     * @tc.type       : Function
878     * @tc.level      : Level 2
879     */
880    it('testMuslPThreadPThreadMutexAttrInit001', 0, async (done: Function) => {
881      expect(pthread.pThreadMutexAttrInit()).assertEqual(0);
882      done()
883    });
884
885    /**
886     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_SETPROTOCOL_0100
887     * @tc.name       : testMuslPThreadPThreadMutexAttrSetProtocol001
888     * @tc.desc       : test pthread_mutexattr_setprotocol
889     * @tc.size       : MediumTest
890     * @tc.type       : Function
891     * @tc.level      : Level 2
892     */
893    it('testMuslPThreadPThreadMutexAttrSetProtocol001', 0, async (done: Function) => {
894      expect(pthread.pThreadMutexAttrSetProtocol()).assertEqual(0);
895      done()
896    });
897
898    /**
899     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_SETPSHARED_0100
900     * @tc.name       : testMuslPThreadPThreadMutexAttrSetPShared001
901     * @tc.desc       : test pthread_mutexattr_setpshared
902     * @tc.size       : MediumTest
903     * @tc.type       : Function
904     * @tc.level      : Level 2
905     */
906    it('testMuslPThreadPThreadMutexAttrSetPShared001', 0, async (done: Function) => {
907      expect(pthread.pThreadMutexAttrSetPShared()).assertEqual(0);
908      done()
909    });
910
911    /**
912     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_MUTEXATTR_SETTYPE_0100
913     * @tc.name       : testMuslPThreadPThreadMutexAttrSetType001
914     * @tc.desc       : test pthread_mutexattr_settype
915     * @tc.size       : MediumTest
916     * @tc.type       : Function
917     * @tc.level      : Level 2
918     */
919    it('testMuslPThreadPThreadMutexAttrSetType001', 0, async (done: Function) => {
920      expect(pthread.pThreadMutexAttrSetType()).assertEqual(0);
921      done()
922    });
923
924    /**
925     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_ONCE_0100
926     * @tc.name       : testMuslPThreadPThreadOnce001
927     * @tc.desc       : test pthread_once
928     * @tc.size       : MediumTest
929     * @tc.type       : Function
930     * @tc.level      : Level 2
931     */
932    it('testMuslPThreadPThreadOnce001', 0, async (done: Function) => {
933      expect(pthread.pThreadOnce()).assertEqual(0);
934      done()
935    });
936
937    /**
938     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_DESTROY_0100
939     * @tc.name       : testMuslPThreadPThreadRwLockDestroy001
940     * @tc.desc       : test pthread_rwlock_destroy
941     * @tc.size       : MediumTest
942     * @tc.type       : Function
943     * @tc.level      : Level 2
944     */
945    it('testMuslPThreadPThreadRwLockDestroy001', 0, async (done: Function) => {
946      expect(pthread.pThreadRwLockDestroy()).assertEqual(0);
947      done()
948    });
949
950    /**
951     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_INIT_0100
952     * @tc.name       : testMuslPThreadPThreadRwLockInit001
953     * @tc.desc       : test pthread_rwlock_init
954     * @tc.size       : MediumTest
955     * @tc.type       : Function
956     * @tc.level      : Level 2
957     */
958    it('testMuslPThreadPThreadRwLockInit001', 0, async (done: Function) => {
959      expect(pthread.pThreadRwLockInit()).assertEqual(0);
960      done()
961    });
962
963    /**
964     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_RDLOCK_0100
965     * @tc.name       : testMuslPThreadPThreadRwLockRdLock001
966     * @tc.desc       : test pthread_rwlock_rdlock
967     * @tc.size       : MediumTest
968     * @tc.type       : Function
969     * @tc.level      : Level 2
970     */
971    it('testMuslPThreadPThreadRwLockRdLock001', 0, async (done: Function) => {
972      expect(pthread.pThreadRwLockRdLock()).assertEqual(0);
973      done()
974    });
975
976    /**
977     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_TIMEDRDLOCK_0100
978     * @tc.name       : testMuslPThreadPThreadRwLockTimedRdLock001
979     * @tc.desc       : test pthread_rwlock_timedrdlock
980     * @tc.size       : MediumTest
981     * @tc.type       : Function
982     * @tc.level      : Level 2
983     */
984    it('testMuslPThreadPThreadRwLockTimedRdLock001', 0, async (done: Function) => {
985      expect(pthread.pThreadRwLockTimedRdLock()).assertEqual(0);
986      done()
987    });
988
989    /**
990     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_TIMEDWRLOCK_0100
991     * @tc.name       : testMuslPThreadPThreadRwLockTimedWrLock001
992     * @tc.desc       : test pthread_rwlock_timedwrlock
993     * @tc.size       : MediumTest
994     * @tc.type       : Function
995     * @tc.level      : Level 2
996     */
997    it('testMuslPThreadPThreadRwLockTimedWrLock001', 0, async (done: Function) => {
998      expect(pthread.pThreadRwLockTimedWrLock()).assertEqual(0);
999      done()
1000    });
1001
1002    /**
1003     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_TRYRDLOCK_0100
1004     * @tc.name       : testMuslPThreadPThreadRwLockTryRdLock001
1005     * @tc.desc       : test pthread_rwlock_tryrdlock
1006     * @tc.size       : MediumTest
1007     * @tc.type       : Function
1008     * @tc.level      : Level 2
1009     */
1010    it('testMuslPThreadPThreadRwLockTryRdLock001', 0, async (done: Function) => {
1011      expect(pthread.pThreadRwLockTryRdLock()).assertEqual(0);
1012      done()
1013    });
1014
1015    /**
1016     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_TRYWRLOCK_0100
1017     * @tc.name       : testMuslPThreadPThreadRwLockTryWrLock001
1018     * @tc.desc       : test pthread_rwlock_trywrlock
1019     * @tc.size       : MediumTest
1020     * @tc.type       : Function
1021     * @tc.level      : Level 2
1022     */
1023    it('testMuslPThreadPThreadRwLockTryWrLock001', 0, async (done: Function) => {
1024      expect(pthread.pThreadRwLockTryWrLock()).assertEqual(0);
1025      done()
1026    });
1027
1028    /**
1029     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_UNLOCK_0100
1030     * @tc.name       : testMuslPThreadPThreadRwLockUnLock001
1031     * @tc.desc       : test pthread_rwlock_unlock
1032     * @tc.size       : MediumTest
1033     * @tc.type       : Function
1034     * @tc.level      : Level 2
1035     */
1036    it('testMuslPThreadPThreadRwLockUnLock001', 0, async (done: Function) => {
1037      expect(pthread.pThreadRwLockUnLock()).assertEqual(0);
1038      done()
1039    });
1040
1041    /**
1042     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCK_WRLOCK_0100
1043     * @tc.name       : testMuslPThreadPThreadRwLockWrLock001
1044     * @tc.desc       : test pthread_rwlock_wrlock
1045     * @tc.size       : MediumTest
1046     * @tc.type       : Function
1047     * @tc.level      : Level 2
1048     */
1049    it('testMuslPThreadPThreadRwLockWrLock001', 0, async (done: Function) => {
1050      expect(pthread.pThreadRwLockWrLock()).assertEqual(0);
1051      done()
1052    });
1053
1054    /**
1055     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCKATTR_DESTROY_0100
1056     * @tc.name       : testMuslPThreadPThreadRwLockAttrDestroy001
1057     * @tc.desc       : test pthread_rwlockattr_destroy
1058     * @tc.size       : MediumTest
1059     * @tc.type       : Function
1060     * @tc.level      : Level 2
1061     */
1062    it('testMuslPThreadPThreadRwLockAttrDestroy001', 0, async (done: Function) => {
1063      expect(pthread.pThreadRwLockAttrDestroy()).assertEqual(0);
1064      done()
1065    });
1066
1067    /**
1068     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCKATTR_GETPSHARED_0100
1069     * @tc.name       : testMuslPThreadPThreadRwLockAttrGetPShared001
1070     * @tc.desc       : test pthread_rwlockattr_getpshared
1071     * @tc.size       : MediumTest
1072     * @tc.type       : Function
1073     * @tc.level      : Level 2
1074     */
1075    it('testMuslPThreadPThreadRwLockAttrGetPShared001', 0, async (done: Function) => {
1076      expect(pthread.pThreadRwLockAttrGetPShared()).assertEqual(0);
1077      done()
1078    });
1079
1080    /**
1081     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCKATTR_INIT_0100
1082     * @tc.name       : testMuslPThreadPThreadRwLockAttrInit001
1083     * @tc.desc       : test pthread_rwlockattr_init
1084     * @tc.size       : MediumTest
1085     * @tc.type       : Function
1086     * @tc.level      : Level 2
1087     */
1088    it('testMuslPThreadPThreadRwLockAttrInit001', 0, async (done: Function) => {
1089      expect(pthread.pThreadRwLockAttrInit()).assertEqual(0);
1090      done()
1091    });
1092
1093    /**
1094     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_RWLOCKATTR_SETPSHARED_0100
1095     * @tc.name       : testMuslPThreadPThreadRwLockAttrSetPShared001
1096     * @tc.desc       : test pthread_rwlockattr_setpshared
1097     * @tc.size       : MediumTest
1098     * @tc.type       : Function
1099     * @tc.level      : Level 2
1100     */
1101    it('testMuslPThreadPThreadRwLockAttrSetPShared001', 0, async (done: Function) => {
1102      expect(pthread.pThreadRwLockAttrSetPShared()).assertEqual(0);
1103      done()
1104    });
1105
1106    /**
1107     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SELF_0100
1108     * @tc.name       : testMuslPThreadPThreadSelf001
1109     * @tc.desc       : test pthread_self
1110     * @tc.size       : MediumTest
1111     * @tc.type       : Function
1112     * @tc.level      : Level 2
1113     */
1114    it('testMuslPThreadPThreadSelf001', 0, async (done: Function) => {
1115      expect(pthread.pThreadSelf()).assertEqual(1);
1116      done()
1117    });
1118
1119    /**
1120     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SETNAME_NP_0100
1121     * @tc.name       : testMuslPThreadPThreadSetNameNp001
1122     * @tc.desc       : test pthread_setname_np
1123     * @tc.size       : MediumTest
1124     * @tc.type       : Function
1125     * @tc.level      : Level 2
1126     */
1127    it('testMuslPThreadPThreadSetNameNp001', 0, async (done: Function) => {
1128      expect(pthread.pThreadSetNameNp()).assertEqual(0);
1129      done()
1130    });
1131
1132    /**
1133     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SETSCHEDPARAM_0100
1134     * @tc.name       : testMuslPThreadPThreadSetSchedParam001
1135     * @tc.desc       : test pthread_setschedparam
1136     * @tc.size       : MediumTest
1137     * @tc.type       : Function
1138     * @tc.level      : Level 2
1139     */
1140    it('testMuslPThreadPThreadSetSchedParam001', 0, async (done: Function) => {
1141      expect(pthread.pThreadSetSchedParam()).assertEqual(0);
1142      done()
1143    });
1144
1145    /**
1146     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SETSPECIFIC_0100
1147     * @tc.name       : testMuslPThreadPThreadSetSpecific001
1148     * @tc.desc       : test pthread_setspecific
1149     * @tc.size       : MediumTest
1150     * @tc.type       : Function
1151     * @tc.level      : Level 2
1152     */
1153    it('testMuslPThreadPThreadSetSpecific001', 0, async (done: Function) => {
1154      expect(pthread.pThreadSetSpecific()).assertEqual(0);
1155      done()
1156    });
1157
1158    /**
1159     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SPIN_INIT_0100
1160     * @tc.name       : testMuslPThreadPThreadSpinInit001
1161     * @tc.desc       : test pthread_spin_init
1162     * @tc.size       : MediumTest
1163     * @tc.type       : Function
1164     * @tc.level      : Level 2
1165     */
1166    it('testMuslPThreadPThreadSpinInit001', 0, async (done: Function) => {
1167      expect(pthread.pThreadSpinInit()).assertEqual(0);
1168      done()
1169    });
1170
1171    /**
1172     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SPIN_DESTROY_0100
1173     * @tc.name       : testMuslPThreadPThreadSpinDestroy001
1174     * @tc.desc       : test pthread_spin_destroy
1175     * @tc.size       : MediumTest
1176     * @tc.type       : Function
1177     * @tc.level      : Level 2
1178     */
1179    it('testMuslPThreadPThreadSpinDestroy001', 0, async (done: Function) => {
1180      expect(pthread.pThreadSpinDestroy()).assertEqual(0);
1181      done()
1182    });
1183
1184    /**
1185     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SPIN_LOCK_0100
1186     * @tc.name       : testMuslPThreadPThreadSpinLock001
1187     * @tc.desc       : test pthread_spin_lock
1188     * @tc.size       : MediumTest
1189     * @tc.type       : Function
1190     * @tc.level      : Level 2
1191     */
1192    it('testMuslPThreadPThreadSpinLock001', 0, async (done: Function) => {
1193      expect(pthread.pThreadSpinLock()).assertEqual(0);
1194      done()
1195    });
1196
1197    /**
1198     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SPIN_TRY_LOCK_0100
1199     * @tc.name       : testMuslPThreadPThreadSpinTryLock001
1200     * @tc.desc       : test pthread_spin_trylock
1201     * @tc.size       : MediumTest
1202     * @tc.type       : Function
1203     * @tc.level      : Level 2
1204     */
1205    it('testMuslPThreadPThreadSpinTryLock001', 0, async (done: Function) => {
1206      expect(pthread.pThreadSpinTryLock()).assertEqual(0);
1207      done()
1208    });
1209
1210    /**
1211     * @tc.number     : SUB_THIRDPARTY_MUSL_PTHREAD_PTHREAD_SPIN_UNLOCK_0100
1212     * @tc.name       : testMuslPThreadPThreadSpinUnLock001
1213     * @tc.desc       : test pthread_spin_unlock
1214     * @tc.size       : MediumTest
1215     * @tc.type       : Function
1216     * @tc.level      : Level 2
1217     */
1218    it('testMuslPThreadPThreadSpinUnLock001', 0, async (done: Function) => {
1219      expect(pthread.pThreadSpinUnLock()).assertEqual(0);
1220      done()
1221    });
1222  })
1223}
1224