diff options
-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 ) |