[LTP] [PATCH 10/11] ipc/shmctl: Testcase failed when no root user run it

Zeng Linggang zenglg.jy@cn.fujitsu.com
Wed Oct 28 08:12:25 CET 2015


Hi,

On Wed, 2015-10-28 at 03:11 +0000, Cui Bixuan wrote:
> 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();
> +

tst_requite_root();

Thanks,
Zeng

>  	TEST_PAUSE;
>  
>  	tst_tmpdir();
> -- 
> 1.6.0.2
> 
> 




More information about the Ltp mailing list