On Thu, 2009-07-09 at 01:46 +0200, Jiri Palecek wrote: 
> The tests need to run under root to change their EUID
> 
> Signed-off-by: Jiri Palecek <[email protected]>

Thanks.

Regards--
Subrata

> ---
>  testcases/kernel/syscalls/mq_unlink/mq_unlink01.c |    1 +
>  testcases/kernel/syscalls/utimes/utimes01.c       |    2 ++
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c 
> b/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c
> index 067656c..85baa2b 100644
> --- a/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c
> +++ b/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c
> @@ -123,6 +123,7 @@ extern void cleanup() {
>  /*                                                                           
>  */
>  
> /******************************************************************************/
>  void setup() {
> +        tst_require_root(tst_exit);
>          /* Capture signals if any */
>          /* Create temporary directories */
>          TEST_PAUSE;
> diff --git a/testcases/kernel/syscalls/utimes/utimes01.c 
> b/testcases/kernel/syscalls/utimes/utimes01.c
> index e52495b..7705269 100644
> --- a/testcases/kernel/syscalls/utimes/utimes01.c
> +++ b/testcases/kernel/syscalls/utimes/utimes01.c
> @@ -130,6 +130,8 @@ extern void cleanup() {
>  /*                                                                           
>  */
>  
> /******************************************************************************/
>  void setup() {
> +        tst_require_root(tst_exit);
> +
>          /* Capture signals if any */
>          /* Create temporary directories */
>          TEST_PAUSE;


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to