On Wed, 2009-09-16 at 17:47 +0200, Renaud Lottiaux wrote:
> The following patch avoids that all kill07 test instances running
> concurrently work with the same SHM object.
> 
> Signed-off-by: Matthieu Fertr <[email protected]>

Thanks. Long time no CONCURRENCY Fixes :-)

Regards--
Subrata

> 
> --- a/testcases/kernel/syscalls/kill/kill07.c
> +++ b/testcases/kernel/syscalls/kill/kill07.c
> @@ -219,6 +219,13 @@ void setup(void)
>         /* Pause if that option was specified */
>         TEST_PAUSE;
>  
> +       /*
> +        * Create a temporary directory and cd into it.
> +        * This helps to ensure that a unique msgkey is created.
> +        * See ../lib/libipc.c for more information.
> +        */
> +       tst_tmpdir();
> +
>         /* get an IPC resource key */
>         semkey = getipckey();
>  
> @@ -241,6 +248,9 @@ void cleanup(void)
>          */
>         rm_shm(shmid1);
>  
> +       /* Remove the temporary directory */
> +       tst_rmdir();
> +
>         /* exit with return code appropriate for results */
>         tst_exit();
>  }


------------------------------------------------------------------------------
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