commit
765add9660
|
@ -32,6 +32,7 @@
|
||||||
#include "osTest.h"
|
#include "osTest.h"
|
||||||
#include "pthread.h"
|
#include "pthread.h"
|
||||||
#include "time.h"
|
#include "time.h"
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#undef TASK_PRIO_TEST
|
#undef TASK_PRIO_TEST
|
||||||
#define TASK_PRIO_TEST LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO
|
#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)
|
LITE_TEST_CASE(PthreadFuncTestSuite, TestPthread010, Function | MediumTest | Level1)
|
||||||
{
|
{
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
pthread_t thread[TEST_THREAD_COUNT];
|
|
||||||
struct sched_param schedParam = { 0 };
|
struct sched_param schedParam = { 0 };
|
||||||
UINT32 ret;
|
UINT32 ret;
|
||||||
UINT32 i = 0;
|
UINT32 i = 0;
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include "posix_test.h"
|
#include "posix_test.h"
|
||||||
#include "kernel_test.h"
|
#include "kernel_test.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#define RET_TRUE 1
|
#define RET_TRUE 1
|
||||||
#define RET_FALSE 0
|
#define RET_FALSE 0
|
||||||
|
|
|
@ -77,6 +77,8 @@
|
||||||
|
|
||||||
void ItSuitePosix(void);
|
void ItSuitePosix(void);
|
||||||
|
|
||||||
|
extern void ItSuitePosixPthread(void);
|
||||||
|
extern void ItSuitePosixMutex(void);
|
||||||
extern void PosixCtypeFuncTest(void);
|
extern void PosixCtypeFuncTest(void);
|
||||||
extern void PosixIsdigitFuncTest(void);
|
extern void PosixIsdigitFuncTest(void);
|
||||||
extern void PosixIslowerFuncTest(void);
|
extern void PosixIslowerFuncTest(void);
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
#include "kernel_test.h"
|
#include "kernel_test.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "los_tick.h"
|
#include "los_tick.h"
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define RET_OK 0
|
#define RET_OK 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue