diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-29 20:27:27 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-29 20:27:27 +0000 |
commit | 0376d08fa7f35c0d7c1f1636b8ec8247cfa59018 (patch) | |
tree | f783c95c5ec5ad36a32d49fb0caf01302ef56bc3 /testsuites/psxtests | |
parent | 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-0376d08fa7f35c0d7c1f1636b8ec8247cfa59018.tar.bz2 |
2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq04/init.c: Add call to mq_unlink.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxmsgq04/init.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 81fb5bf32d..627367d964 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,5 +1,9 @@ 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com> + * psxmsgq04/init.c: Add call to mq_unlink. + +2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com> + * Makefile.am, configure.ac: Add shell of new test. * psxmsgq04/.cvsignore, psxmsgq04/Makefile.am, psxmsgq04/init.c, psxmsgq04/psxmsgq04.doc, psxmsgq04/psxmsgq04.scn: New files. diff --git a/testsuites/psxtests/psxmsgq04/init.c b/testsuites/psxtests/psxmsgq04/init.c index a4f3bacd4a..21dca33049 100644 --- a/testsuites/psxtests/psxmsgq04/init.c +++ b/testsuites/psxtests/psxmsgq04/init.c @@ -39,6 +39,12 @@ void *POSIX_Init( perror( "mq_open failed" ); assert( Queue != (-1) ); + puts( "Init - Unlink message queue" ); + sc = mq_unlink( "Queue" ); + if ( sc != 0 ) + perror( "mq_unlink failed" ); + assert( sc == 0 ); + puts( "Init - Close message queue" ); sc = mq_close( Queue ); if ( sc != 0 ) |