From 2665643624aa05fba3fd5b28f3da4a4e12f4d9f0 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Jul 2021 16:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=8A=E8=AD=A6=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: root Change-Id: I0386fd64be95ff1757117df6d65f28a1672a595b --- kernel_lite/kernelcmsis_hal/src/cmsis_task_func_test.c | 1 - kernel_lite/process_posix/src/PthreadAttrTest.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 ba7564d47..483d512d9 100644 --- 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 09452811a..c083bf10a 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"; -- GitLab