Changeset 13f09e6 in rtems for c


Ignore:
Timestamp:
Jul 31, 1997, 7:48:23 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
91333c2
Parents:
e7d8b58
Message:

Added support for rtems_message_queue_get_number_pending.

Location:
c/src/tests/sptests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/sp09/screen07.c

    re7d8b58 r13f09e6  
    112112  );
    113113  puts( "TA1 - rtems_message_queue_ident - RTEMS_INVALID_NAME" );
     114
     115  status = rtems_message_queue_get_number_pending( 100, &count );
     116  fatal_directive_status(
     117    status,
     118    RTEMS_INVALID_ID,
     119    "rtems_message_queue_get_number_pending with illegal id"
     120  );
     121  puts( "TA1 - rtems_message_queue_get_number_pending - RTEMS_INVALID_ID" );
    114122
    115123  status = rtems_message_queue_flush( 100, &count );
  • c/src/tests/sptests/sp09/sp09.scn

    re7d8b58 r13f09e6  
    102102TA1 - rtems_message_queue_delete - local RTEMS_INVALID_ID
    103103TA1 - rtems_message_queue_ident - RTEMS_INVALID_NAME
     104TA1 - rtems_message_queue_get_number_pending - RTEMS_INVALID_ID
    104105TA1 - rtems_message_queue_flush - RTEMS_INVALID_ID
    105106TA1 - rtems_message_queue_receive - RTEMS_INVALID_ID
  • c/src/tests/sptests/sp13/sp13.scn

    re7d8b58 r13f09e6  
    5353TA1 - rtems_message_queue_urgent - BUFFER 3 TO Q 2
    5454TA1 - rtems_message_queue_delete - delete queue 2
     55TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL
     56TA1 - 0 messages are pending on Q 3
    5557TA1 - rtems_message_queue_flush - empty Q 3
    5658TA1 - 0 messages were flushed from Q 3
    5759TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3
    5860TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3
     61TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL
     62TA1 - 2 messages are pending on Q 3
    5963TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3
    6064TA1 - rtems_message_queue_flush - Q 3
  • c/src/tests/sptests/sp13/task1.c

    re7d8b58 r13f09e6  
    199199  directive_failed( status, "rtems_message_queue_delete" );
    200200
     201  puts( "TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL\n" );
     202  status = rtems_message_queue_get_number_pending( Queue_id[ 3 ], &count );
     203  printf( "TA1 - %d messages are pending on Q 3\n", count );
     204
    201205  puts( "TA1 - rtems_message_queue_flush - empty Q 3" );
    202206  status = rtems_message_queue_flush( Queue_id[ 3 ], &count );
     
    212216  status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
    213217  directive_failed( status, "rtems_message_queue_send" );
     218
     219  puts( "TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL\n" );
     220  status = rtems_message_queue_get_number_pending( Queue_id[ 3 ], &count );
     221  printf( "TA1 - %d messages are pending on Q 3\n", count );
    214222
    215223  Fill_buffer( "BUFFER 3 TO Q 3", buffer );
Note: See TracChangeset for help on using the changeset viewer.