提交 e2ea7063 编写于 作者: O openharmony_ci 提交者: Gitee

!347 【kernel_lite】【master】为了规避在单步执行procee_posix里的用例时,获取出来的gid是0为最大的权限

Merge pull request !347 from limeng/kernel_lite_20210722_01
......@@ -67,6 +67,11 @@ protected:
int rt = getgroups(groupNum, groupsArray);
EXPECT_EQ(rt, groupNum);
}
void SetUp()
{
LOG("SetUp: set gid");
setgid(SHELL_GID);
}
void TearDown()
{
LOG("TearDown: reset uid and gid");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册