提交 8b6ec014 编写于 作者: L limeng151

修改用例

Signed-off-by: Nlimeng151 <limeng151@huawei.com>
Change-Id: I49afdb4c53e590a691d51167e916df9d857ab297
上级 f5e9e153
...@@ -26,7 +26,6 @@ const int MAX_UGID = 100000; ...@@ -26,7 +26,6 @@ const int MAX_UGID = 100000;
static int groupNum = -1; static int groupNum = -1;
static gid_t groupsArry[10] = {0}; static gid_t groupsArry[10] = {0};
// Assert all uid == expectUid // Assert all uid == expectUid
#define AssertAllUid(expectUid) do { \ #define AssertAllUid(expectUid) do { \
uid_t uid, euid, suid; \ uid_t uid, euid, suid; \
...@@ -67,9 +66,6 @@ protected: ...@@ -67,9 +66,6 @@ protected:
void TearDown() void TearDown()
{ {
LOG("TearDown: reset uid and gid"); LOG("TearDown: reset uid and gid");
// gid_t gidList[2];
// gidList[0] = SHELL_UID;
// gidList[1] = 0;
setuid(SHELL_UID); setuid(SHELL_UID);
setgid(SHELL_GID); setgid(SHELL_GID);
AssertAllUid(SHELL_UID); AssertAllUid(SHELL_UID);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册