[LTP] [PATCH 10/11] ipc/shmctl: Testcase failed when no root user run it
Cui Bixuan
cuibixuan@huawei.com
Wed Oct 28 04:11:46 CET 2015
Add tst_require_root() to testcase for shmctl().
Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
---
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);
+ Add tst_require_root();
+
TEST_PAUSE;
tst_tmpdir();
--
1.6.0.2
More information about the Ltp
mailing list