diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-28 19:39:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-28 19:39:06 +0000 |
commit | 8d8c1f131861d286d5c8bccc5dee05b5fe0be358 (patch) | |
tree | 5e5387b6ae0844a17147543a6c7ec11e27f00f76 /testsuites/sptests/sp09/screen11.c | |
parent | 2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-8d8c1f131861d286d5c8bccc5dee05b5fe0be358.tar.bz2 |
2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp09/screen02.c, sp09/screen04.c, sp09/screen07.c, sp09/screen09.c,
sp09/screen10.c, sp09/screen11.c, sp09/screen12.c, sp09/sp09.scn: Add
some error cases uncovered by uC5282 coverage runs.
Diffstat (limited to 'testsuites/sptests/sp09/screen11.c')
-rw-r--r-- | testsuites/sptests/sp09/screen11.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuites/sptests/sp09/screen11.c b/testsuites/sptests/sp09/screen11.c index 779143ca46..32c8e4e38e 100644 --- a/testsuites/sptests/sp09/screen11.c +++ b/testsuites/sptests/sp09/screen11.c @@ -191,6 +191,16 @@ void Screen11() ); puts( "TA1 - rtems_partition_delete - local RTEMS_INVALID_ID" ); + /* get bad address */ + status = rtems_partition_get_buffer( 100, NULL ); + fatal_directive_status( + status, + RTEMS_INVALID_ADDRESS, + "rtems_partition_get_buffer with NULL param" + ); + puts( "TA1 - rtems_partition_get_buffer - RTEMS_INVALID_ADDRESS" ); + + /* get bad Id */ status = rtems_partition_get_buffer( 100, &buffer_address_1 ); fatal_directive_status( status, @@ -215,6 +225,23 @@ void Screen11() ); puts( "TA1 - rtems_partition_return_buffer - RTEMS_INVALID_ID" ); + /* create bad area */ + status = rtems_partition_create( + Partition_name[ 1 ], + NULL, + 128, + 64, + RTEMS_DEFAULT_ATTRIBUTES, + &Junk_id + ); + fatal_directive_status( + status, + RTEMS_INVALID_ADDRESS, + "rtems_partition_return_buffer with NULL area" + ); + puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS" ); + + /* create OK */ status = rtems_partition_create( Partition_name[ 1 ], Partition_good_area, |