From 8bafd774c2b14b1d98f3f61632903b4bb60a6e5b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 5 Jan 2009 19:39:56 +0000 Subject: 2009-01-05 Joel Sherrill * 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. --- testsuites/psxtests/ChangeLog | 6 ++++++ testsuites/psxtests/psxmsgq02/init.c | 4 ++-- testsuites/psxtests/psxmsgq02/psxmsgq02.scn | 3 +-- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'testsuites') diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index c6f92a0ad9..4e95e42c8e 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,9 @@ +2009-01-05 Joel Sherrill + + * 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. + 2008-12-14 Joel Sherrill * psx05/init.c: Add parameter to call to sched_get_priority_max(). 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 ***" ); diff --git a/testsuites/psxtests/psxmsgq02/psxmsgq02.scn b/testsuites/psxtests/psxmsgq02/psxmsgq02.scn index a7874927b6..6f118cd10f 100644 --- a/testsuites/psxtests/psxmsgq02/psxmsgq02.scn +++ b/testsuites/psxtests/psxmsgq02/psxmsgq02.scn @@ -1,5 +1,4 @@ *** POSIX MESSAGE QUEUE 02 TEST *** Init's ID is 0x0b010001 -Allocate_majority_of_workspace: -Init: ENOMEM (Workspace not available) +Init: mq_open - Workspace not available - ENOMEM *** END POSIX MESSAGE QUEUE 02 TEST *** -- cgit v1.2.3