From be2c97146c7e26f0462486062b1257b2da718ba8 Mon Sep 17 00:00:00 2001 From: limeng151 Date: Thu, 22 Jul 2021 18:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=8D=95=E6=AD=A5=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=EF=BC=8C=E4=B8=BA=E4=BA=86=E8=A7=84=E9=81=BF=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9A=84gid=E4=B8=BA=E6=9C=80=E5=A4=A7=E6=9D=83=E9=99=900?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: limeng151 Change-Id: I8aea28b3b3774be4865afd586c5c53a6f08e94b8 --- kernel_lite/process_posix/src/UidGidTest.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel_lite/process_posix/src/UidGidTest.h b/kernel_lite/process_posix/src/UidGidTest.h index 57f9d9a18..bcfea1e55 100755 --- a/kernel_lite/process_posix/src/UidGidTest.h +++ b/kernel_lite/process_posix/src/UidGidTest.h @@ -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"); -- GitLab