diff --git a/kernel_lite/kernelcmsis_hal/src/cmsis_task_func_test.c b/kernel_lite/kernelcmsis_hal/src/cmsis_task_func_test.c index ba7564d47ce563f41119a427c14e4240ec1a6b67..483d512d9bdc861a277c82e969dc5a0eb2378f7d 100755 --- a/kernel_lite/kernelcmsis_hal/src/cmsis_task_func_test.c +++ b/kernel_lite/kernelcmsis_hal/src/cmsis_task_func_test.c @@ -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(); } diff --git a/kernel_lite/process_posix/src/PthreadAttrTest.cpp b/kernel_lite/process_posix/src/PthreadAttrTest.cpp index 09452811a0fe12582b0aa8f797c6df10443d7745..c083bf10a96f3a9ecb98060583100c87bfc994e5 100755 --- a/kernel_lite/process_posix/src/PthreadAttrTest.cpp +++ b/kernel_lite/process_posix/src/PthreadAttrTest.cpp @@ -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";