提交 76302387 编写于 作者: 余明星 提交者: Gitee

update kernel_lite/process_posix/src/PthreadAttrTest.cpp.

Signed-off-by:余明星<yumingxing2@huawei.com>
上级 d8919a93
......@@ -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.
先完成此消息的编辑!
想要评论请 注册