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

Cyril Hrubis chrubis@suse.cz
Thu Oct 29 13:46:04 CET 2015


Hi!
> 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();

This one runs fine as well.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list