summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp09/screen11.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp09/screen11.c')
-rw-r--r--testsuites/sptests/sp09/screen11.c27
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,