Changeset 5f818ec1 in rtems


Ignore:
Timestamp:
Dec 13, 2011, 10:49:13 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9c2d082b
Parents:
23e0b66
Message:

2011-12-13 Sebastian Huber <sebastian.huber@…>

  • psxmsgq04/init.c: Fixed allocation of second message queue.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r23e0b66 r5f818ec1  
     12011-12-13      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * psxmsgq04/init.c: Fixed allocation of second message queue.
     4
    152011-12-13      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • testsuites/psxtests/psxmsgq04/init.c

    r23e0b66 r5f818ec1  
    8888  puts( "Init - Memory allocation error test" );
    8989
    90   sb = rtems_workspace_get_information( &info );
    91 
    92   attr.mq_maxmsg = 1;
    93   attr.mq_msgsize = 200;
    94 
    9590  name = Get_Longest_Name();
    96   while ( attr.mq_msgsize > 0 ) {
     91  do {
    9792    sb = rtems_workspace_allocate( to_alloc, &alloced );
    9893    rtems_test_assert( sb );
     
    10398    rtems_workspace_free( alloced );
    10499
    105     if ( second_Queue != (-1) )
    106       break;
    107 
    108     /* attr.mq_msgsize -= 48; */
    109100    to_alloc -= 4;
    110   }
    111 
    112   if ( second_Queue == -1 )
    113     rtems_test_exit(0);
     101  } while ( second_Queue == -1 );
    114102
    115103  puts( "Init - Message Queue created" );
     
    142130/* account for message buffers and string names */
    143131#define CONFIGURE_MESSAGE_BUFFER_MEMORY \
    144     CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(1, sizeof(int))
     132    (2 * CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(1, sizeof(int)))
    145133
    146134#define CONFIGURE_MAXIMUM_POSIX_THREADS                   1
Note: See TracChangeset for help on using the changeset viewer.