From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cui Bixuan Date: Wed, 28 Oct 2015 15:31:34 +0800 Subject: [LTP] [PATCH 10/11 v2] ipc/shmctl: Testcase failed when no root user run it In-Reply-To: <1446016345.17485.3.camel@G08FNSTD140232> References: <1446001907-43525-1-git-send-email-cuibixuan@huawei.com> <1446001907-43525-10-git-send-email-cuibixuan@huawei.com> <1446016345.17485.3.camel@G08FNSTD140232> Message-ID: <563079D6.6010104@huawei.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Add tst_require_root() to testcase for shmctl(). Signed-off-by: Cui Bixuan --- testcases/kernel/syscalls/ipc/shmctl/shmctl01.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c b/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c index ac66ceb..5aa039f 100644 --- a/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c +++ b/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c @@ -470,6 +470,8 @@ void setup(void) { tst_sig(FORK, sighandler, cleanup); + tst_require_root(); + TEST_PAUSE; tst_tmpdir(); -- 1.6.0.2