diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-05 19:39:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-05 19:39:56 +0000 |
commit | 8bafd774c2b14b1d98f3f61632903b4bb60a6e5b (patch) | |
tree | a2f5a77d89f11791e8be153085b5bc57ae552692 /testsuites/psxtests/psxmsgq02/init.c | |
parent | 2009-01-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-8bafd774c2b14b1d98f3f61632903b4bb60a6e5b.tar.bz2 |
2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq02/init.c, psxmsgq02/psxmsgq02.scn: Open the message queue
with create option so we are sure it will get a control block and
proceed to allocate other memory. Clean up screen output.
Diffstat (limited to 'testsuites/psxtests/psxmsgq02/init.c')
-rw-r--r-- | testsuites/psxtests/psxmsgq02/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxmsgq02/init.c b/testsuites/psxtests/psxmsgq02/init.c index 32bb6bcc47..5c7b88b98f 100644 --- a/testsuites/psxtests/psxmsgq02/init.c +++ b/testsuites/psxtests/psxmsgq02/init.c @@ -54,8 +54,8 @@ void *POSIX_Init( attr.mq_maxmsg = MAXMSG; attr.mq_msgsize = MSGSIZE; - puts("Init: ENOMEM (Workspace not available)"); - mq = mq_open( Get_Longest_Name(), O_WRONLY, 0x777, &attr ); + puts("Init: mq_open - Workspace not available - ENOMEM"); + mq = mq_open( Get_Longest_Name(), O_CREAT, 0x777, &attr ); fatal_posix_service_status_errno( mq, ENOMEM, "no workspace available" ); puts( "*** END OF POSIX MESSAGE QUEUE 02 TEST ***" ); |