summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmsgq04
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-29 20:27:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-29 20:27:27 +0000
commit0376d08fa7f35c0d7c1f1636b8ec8247cfa59018 (patch)
treef783c95c5ec5ad36a32d49fb0caf01302ef56bc3 /testsuites/psxtests/psxmsgq04
parent2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/psxmsgq04')
-rw-r--r--testsuites/psxtests/psxmsgq04/init.c6
1 files changed, 6 insertions, 0 deletions
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 )