diff options
Diffstat (limited to 'testsuites/sptests/sp09/init.c')
-rw-r--r-- | testsuites/sptests/sp09/init.c | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/testsuites/sptests/sp09/init.c b/testsuites/sptests/sp09/init.c index f8b5e8bbb5..12ff5a9b08 100644 --- a/testsuites/sptests/sp09/init.c +++ b/testsuites/sptests/sp09/init.c @@ -1,17 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is a user initialization task and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. +/* + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -60,6 +48,7 @@ rtems_task Init( Period_name[ 1 ] = rtems_build_name( 'T', 'M', '1', ' ' ); + /* priority of 0 error */ status = rtems_task_create( Task_name[1], 0, @@ -73,7 +62,25 @@ rtems_task Init( RTEMS_INVALID_PRIORITY, "rtems_task_create with illegal priority" ); - puts( "INIT - rtems_task_create - RTEMS_INVALID_PRIORITY" ); + puts( "INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY" ); + + /* priority > 255 error */ + status = rtems_task_create( + Task_name[1], + 257, + RTEMS_MINIMUM_STACK_SIZE, + RTEMS_DEFAULT_MODES, + RTEMS_DEFAULT_ATTRIBUTES, + &Task_id[ 1 ] + ); + fatal_directive_status( + status, + RTEMS_INVALID_PRIORITY, + "rtems_task_create with illegal priority" + ); + puts( + "INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY" + ); status = rtems_task_create( Task_name[ 1 ], |