summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp16
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp16')
-rw-r--r--testsuites/sptests/sp16/task1.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/testsuites/sptests/sp16/task1.c b/testsuites/sptests/sp16/task1.c
index 7e4422465f..8303c12e01 100644
--- a/testsuites/sptests/sp16/task1.c
+++ b/testsuites/sptests/sp16/task1.c
@@ -229,15 +229,28 @@ rtems_test_pause();
fatal_directive_status(
status,
RTEMS_UNSATISFIED,
- "rtems_task_get_segment with no memory left"
+ "rtems_region_get_segment with no memory left"
);
- puts( "TA1 - rtems_task_get_segment - RTEMS_UNSATISFIED" );
+ puts( "TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED" );
- puts( "TA1 - rtems_region_extend - extend region 4 by 4K" );
+ puts( "TA1 - rtems_region_extend - extend region 4 by 1" );
status = rtems_region_extend(
Region_id[ 4 ],
&Area_4[4096],
- 4096
+ 1
+ );
+ fatal_directive_status(
+ status,
+ RTEMS_INVALID_ADDRESS,
+ "rtems_region_extend with too small memory area"
+ );
+ puts( "TA1 - rtems_region_extend - RTEMS_INVALID_ADDRESS" );
+
+ puts( "TA1 - rtems_region_extend - extend region 4 by 4K - 1" );
+ status = rtems_region_extend(
+ Region_id[ 4 ],
+ (char *) &Area_4[4096] + 1,
+ 4096 - 1
);
directive_failed( status, "rtems_region_extend" );