diff --git a/testsuites/sample/posix/pthread_func_test.c b/testsuites/sample/posix/pthread_func_test.c index 63affaa1..676a528a 100644 --- a/testsuites/sample/posix/pthread_func_test.c +++ b/testsuites/sample/posix/pthread_func_test.c @@ -32,6 +32,7 @@ #include "osTest.h" #include "pthread.h" #include "time.h" +#include #undef TASK_PRIO_TEST #define TASK_PRIO_TEST LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO @@ -691,7 +692,6 @@ static VOID PthreadOnceFunc01(void) LITE_TEST_CASE(PthreadFuncTestSuite, TestPthread010, Function | MediumTest | Level1) { pthread_attr_t attr; - pthread_t thread[TEST_THREAD_COUNT]; struct sched_param schedParam = { 0 }; UINT32 ret; UINT32 i = 0; diff --git a/testsuites/unittest/posix/src/ctype/ctype_func_test.c b/testsuites/unittest/posix/src/ctype/ctype_func_test.c index bfb409c8..6e808b0b 100644 --- a/testsuites/unittest/posix/src/ctype/ctype_func_test.c +++ b/testsuites/unittest/posix/src/ctype/ctype_func_test.c @@ -34,6 +34,7 @@ #include "posix_test.h" #include "kernel_test.h" #include "log.h" +#include #define RET_TRUE 1 #define RET_FALSE 0 diff --git a/testsuites/unittest/posix/src/posix_test.h b/testsuites/unittest/posix/src/posix_test.h index 07a90f1a..0e61e3b6 100644 --- a/testsuites/unittest/posix/src/posix_test.h +++ b/testsuites/unittest/posix/src/posix_test.h @@ -77,6 +77,8 @@ void ItSuitePosix(void); +extern void ItSuitePosixPthread(void); +extern void ItSuitePosixMutex(void); extern void PosixCtypeFuncTest(void); extern void PosixIsdigitFuncTest(void); extern void PosixIslowerFuncTest(void); diff --git a/testsuites/unittest/posix/src/time/time_func_test_01.c b/testsuites/unittest/posix/src/time/time_func_test_01.c index 07b02c19..bc980f04 100644 --- a/testsuites/unittest/posix/src/time/time_func_test_01.c +++ b/testsuites/unittest/posix/src/time/time_func_test_01.c @@ -41,6 +41,7 @@ #include "kernel_test.h" #include "log.h" #include "los_tick.h" +#include #define RET_OK 0