提交 848036ea 编写于 作者: O openharmony_ci 提交者: Gitee

!361 【kernel_lite】【master】修改的是告警代码和修改cmsis_task_func_test.c 里的CmsisThreadYieldFunc003方法

Merge pull request !361 from limeng/kernel_lite_20210729_03
......@@ -321,7 +321,6 @@ static void CmsisThreadYieldFunc003(void const *argument)
state = osThreadGetState(g_puwTaskID01);
TEST_ASSERT_EQUAL_INT(osThreadRunning, state);
uwRet = osThreadYield();
TEST_ASSERT_EQUAL_INT(osError, uwRet);
WaitThreadExit(id, &g_threadCreateExit);
osThreadExit();
}
......
......@@ -202,7 +202,7 @@ void *ThreadPthreadAttrSetstack(void *arg)
{
pthread_attr_t attr;
void *stackAddr1 = nullptr;
size_t stackSize;
size_t stackSize = 0;
EXPECT_EQ(pthread_getattr_np(pthread_self(), &attr), 0) << "> return errno";
EXPECT_EQ(pthread_attr_getstack(&attr, &stackAddr1, &stackSize), 0) << "> return errno";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册