Hi ! The following patch avoids that all kill07 test instances running concurrently work with the same SHM object.
Signed-off-by: Matthieu Fertré <[email protected]> Regards. R.
The following patch avoids that all kill07 test instances running concurrently work with the same SHM object. Signed-off-by: Matthieu Fertr� <[email protected]> --- 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(); }
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
