fix: 对与POSIX相关的测试用例添加入口

【背景】
posix 相关的测试用例中需要添加一个入口

【修改方案】
添加了对应的程序文件,并在该文件中调用所有POSIX相关的测试用例的函数

【影响】
对现有的产品编译不会有影响

Signed-off-by: yinjiaming <yinjiaming@huawei.com>
Change-Id: I107dd5d7ec2691c8e1d8677b916b4b00c628506f
This commit is contained in:
yinjiaming
2022-04-14 12:40:13 +00:00
parent df9387c28f
commit 7ecdbbe6d7
33 changed files with 445 additions and 110 deletions
+4 -5
View File
@@ -35,6 +35,9 @@
#if (LITEOS_CMSIS_TEST == 1)
#include "cmsis_os.h"
#endif
#if (LOS_POSIX_TEST == 1)
#include "posix_test.h"
#endif
UINT32 volatile g_testCount;
UINT32 g_testTskHandle;
@@ -221,11 +224,7 @@ VOID TestTaskEntry()
TestKernel();
#if (LOS_POSIX_TEST == 1)
ret = PthreadFuncTestSuite();
if (ret != 0) {
PRINTF("PthreadFuncTestSuite start failed! errno: %u\n", ret);
return;
}
ItSuitePosix();
#endif
#if (LOS_CMSIS_TEST == 1)