summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp13/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-07-31 19:48:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-07-31 19:48:23 +0000
commit13f09e64e56cb2bda93cbcdd3c71afc361a6ab6d (patch)
tree48bcba5392282cf70fbee0a5c4513668ba1db0e5 /testsuites/sptests/sp13/task1.c
parente7d8b5882699d0a44ab51c5547bbcd6b21d96b52 (diff)
downloadrtems-13f09e64e56cb2bda93cbcdd3c71afc361a6ab6d.tar.bz2
Added support for rtems_message_queue_get_number_pending.
Diffstat (limited to 'testsuites/sptests/sp13/task1.c')
-rw-r--r--testsuites/sptests/sp13/task1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c
index 080d4608a7..bfd43c3dd8 100644
--- a/testsuites/sptests/sp13/task1.c
+++ b/testsuites/sptests/sp13/task1.c
@@ -198,6 +198,10 @@ rtems_test_pause();
status = rtems_message_queue_delete( Queue_id[ 2 ] );
directive_failed( status, "rtems_message_queue_delete" );
+ puts( "TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL\n" );
+ status = rtems_message_queue_get_number_pending( Queue_id[ 3 ], &count );
+ printf( "TA1 - %d messages are pending on Q 3\n", count );
+
puts( "TA1 - rtems_message_queue_flush - empty Q 3" );
status = rtems_message_queue_flush( Queue_id[ 3 ], &count );
printf( "TA1 - %d messages were flushed from Q 3\n", count );
@@ -212,6 +216,10 @@ rtems_test_pause();
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
+ puts( "TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL\n" );
+ status = rtems_message_queue_get_number_pending( Queue_id[ 3 ], &count );
+ printf( "TA1 - %d messages are pending on Q 3\n", count );
+
Fill_buffer( "BUFFER 3 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );