Changeset 236839e2 in rtems


Ignore:
Timestamp:
Aug 5, 2009, 4:33:36 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
61ae99b
Parents:
a07c8de
Message:

2009-08-05 Joel Sherrill <joel.sherrill@…>

  • psxmsgq04/init.c, psxmsgq04/psxmsgq04.doc, psxmsgq04/psxmsgq04.scn: Update to handle ENFILE case now that POSIX message queues and message queue file descriptors are configured separately and this error is possible.
Location:
testsuites/psxtests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    ra07c8de r236839e2  
     12009-08-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxmsgq04/init.c, psxmsgq04/psxmsgq04.doc, psxmsgq04/psxmsgq04.scn:
     4        Update to handle ENFILE case now that POSIX message queues and
     5        message queue file descriptors are configured separately and this
     6        error is possible.
     7
    182009-08-05      Santosh G Vattam <vattam.santosh@gmail.com>
    29
  • testsuites/psxtests/psxmsgq04/init.c

    ra07c8de r236839e2  
    3636  attr.mq_msgsize = sizeof(int);
    3737
    38   puts( "Init - Open message queue" );
     38  puts( "Init - Open message queue instance 1" );
    3939  Queue = mq_open( "Queue", O_CREAT | O_RDWR, 0x777, &attr );
    4040  if ( Queue == (-1) )
     
    4242  assert( Queue != (-1) );
    4343
    44   puts( "Init - Unlink message queue" );
     44  puts( "Init - Open message queue instance 2 - FAIL - ENFILE " );
     45  second_Queue = mq_open( "Queue2", O_CREAT | O_RDWR, 0x777, &attr );
     46  if ( second_Queue != (-1) )
     47    puts( "mq_open did not failed" );
     48  assert( second_Queue == (-1) );
     49  assert( errno == ENFILE );
     50
     51  puts( "Init - Unlink message queue instance 1" );
    4552  sc = mq_unlink( "Queue" );
    4653  if ( sc != 0 )
     
    4855  assert( sc == 0 );
    4956
    50   puts( "Init - Close message queue" );
     57  puts( "Init - Close message queue instance 1" );
    5158  sc = mq_close( Queue );
    5259  if ( sc != 0 )
     
    97104#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    98105
    99 #define CONFIGURE_MAXIMUM_POSIX_THREADS        1
    100 #define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 1
     106#define CONFIGURE_MAXIMUM_POSIX_THREADS                        1
     107#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES                 1
     108#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_FILE_DESCRIPTORS 2
    101109
    102110#define CONFIGURE_POSIX_INIT_THREAD_TABLE
  • testsuites/psxtests/psxmsgq04/psxmsgq04.scn

    ra07c8de r236839e2  
    11*** POSIX MESSAGE QUEUE TEST 4 ***
    22Init - Open message queue
     3Init - Open message queue instance 2 - FAIL - ENFILE
    34Init - Unlink message queue
    45Init - Close message queue
Note: See TracChangeset for help on using the changeset viewer.