Changeset 3e7a0fd in rtems


Ignore:
Timestamp:
Jan 13, 2000, 7:27:33 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
11944b9b
Parents:
85d62357
Message:

Added test case for broadcast to queue with messages pending.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/sp13/sp13.scn

    r85d62357 r3e7a0fd  
    5959TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3
    6060TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3
     61TA3 - rtems_message_queue_broadcast - NO BUFFER TO Q1
     62TA3 - number of tasks awakened = 0
    6163TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL
    6264TA1 - 2 messages are pending on Q 3
  • c/src/tests/sptests/sp13/task1.c

    r85d62357 r3e7a0fd  
    214214  directive_failed( status, "rtems_message_queue_send" );
    215215
     216  /* this broadcast should have no effect on the queue */
     217  Fill_buffer( "NO BUFFER TO Q1", (long *)buffer );
     218  puts( "TA3 - rtems_message_queue_broadcast - NO BUFFER TO Q1" );
     219  status = rtems_message_queue_broadcast(
     220    Queue_id[ 1 ],
     221    (long (*)[4])buffer,
     222    16,
     223    &count
     224  );
     225  printf( "TA3 - number of tasks awakened = %d\n", count );
     226
     227
    216228  puts( "TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL\n" );
    217229  status = rtems_message_queue_get_number_pending( Queue_id[ 3 ], &count );
  • testsuites/sptests/sp13/sp13.scn

    r85d62357 r3e7a0fd  
    5959TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3
    6060TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3
     61TA3 - rtems_message_queue_broadcast - NO BUFFER TO Q1
     62TA3 - number of tasks awakened = 0
    6163TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL
    6264TA1 - 2 messages are pending on Q 3
  • testsuites/sptests/sp13/task1.c

    r85d62357 r3e7a0fd  
    214214  directive_failed( status, "rtems_message_queue_send" );
    215215
     216  /* this broadcast should have no effect on the queue */
     217  Fill_buffer( "NO BUFFER TO Q1", (long *)buffer );
     218  puts( "TA3 - rtems_message_queue_broadcast - NO BUFFER TO Q1" );
     219  status = rtems_message_queue_broadcast(
     220    Queue_id[ 1 ],
     221    (long (*)[4])buffer,
     222    16,
     223    &count
     224  );
     225  printf( "TA3 - number of tasks awakened = %d\n", count );
     226
     227
    216228  puts( "TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL\n" );
    217229  status = rtems_message_queue_get_number_pending( Queue_id[ 3 ], &count );
Note: See TracChangeset for help on using the changeset viewer.