[LTP] [PATCH 9/11] ipc/semctl: Testcases failed when no root user run it

Cyril Hrubis chrubis@suse.cz
Thu Oct 29 13:45:01 CET 2015


Hi!
> diff --git a/testcases/kernel/syscalls/ipc/semctl/semctl07.c b/testcases/kernel/syscalls/ipc/semctl/semctl07.c
> index 3cc1eff..2eb9b5e 100644
> --- a/testcases/kernel/syscalls/ipc/semctl/semctl07.c
> +++ b/testcases/kernel/syscalls/ipc/semctl/semctl07.c
> @@ -155,6 +155,8 @@ void setup(void)
>  {
>  	tst_sig(NOFORK, DEF_HANDLER, cleanup);
>  
> +	tst_require_root();
> +
>  	TEST_PAUSE;
>  
>  	tst_tmpdir();

This test runs fine without root for me.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list