diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-14 17:44:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-14 17:44:15 +0000 |
commit | 6bc19a148a3ea5306c21f71a63b3c4b7d91077c9 (patch) | |
tree | 842a5c159e836ed7e4db607cfbbfc742d7bd36b3 /testsuites/sptests/sp09/screen07.c | |
parent | 2007-12-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-6bc19a148a3ea5306c21f71a63b3c4b7d91077c9.tar.bz2 |
2007-12-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp09/screen07.c, sp09/sp09.scn: Add test for
rtems_message_queue_broadcast for bad buffer and count pointers.
* sp30/init.c, sp30/sp30.scn: Add test for initiating timer server
with bad priority or initiating twice.
* sp37/sp37.scn, sp37/system.h: Add test for rtems_clock_tick when
it forces a dispatch.
* sp37/init.c: New file.
Diffstat (limited to 'testsuites/sptests/sp09/screen07.c')
-rw-r--r-- | testsuites/sptests/sp09/screen07.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/sptests/sp09/screen07.c b/testsuites/sptests/sp09/screen07.c index 71d160ed18..571108276b 100644 --- a/testsuites/sptests/sp09/screen07.c +++ b/testsuites/sptests/sp09/screen07.c @@ -241,4 +241,21 @@ void Screen7() "rtems_message_queue_urgent with illegal id" ); puts( "TA1 - rtems_message_queue_urgent - RTEMS_INVALID_ID" ); + + status = rtems_message_queue_broadcast( Queue_id[ 1 ], NULL, MESSAGE_SIZE, &count ); + fatal_directive_status( + status, + RTEMS_INVALID_ADDRESS, + "rtems_message_queue_broadcast with NULL count" + ); + puts( "TA1 - rtems_message_queue_broadcast - NULL buffer - RTEMS_INVALID_ADDRESS" ); + + status = rtems_message_queue_broadcast( Queue_id[ 1 ], buffer, MESSAGE_SIZE, NULL ); + fatal_directive_status( + status, + RTEMS_INVALID_ADDRESS, + "rtems_message_queue_broadcast with NULL count" + ); + puts( "TA1 - rtems_message_queue_broadcast - NULL count - RTEMS_INVALID_ADDRESS" ); + } |