diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-04 22:02:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-04 22:02:18 +0000 |
commit | d05ec0f77313dc15ff4f4253441d56a4ce101530 (patch) | |
tree | dcf8b20ddea9a527102741ad299e821fe79f58a0 /testsuites/sptests/sp09/init.c | |
parent | add missing file (diff) | |
download | rtems-d05ec0f77313dc15ff4f4253441d56a4ce101530.tar.bz2 |
2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/init.c, sp07/sp07.scn, sp09/init.c, sp09/screen01.c,
sp09/sp09.scn, sp28/init.c, sp62/init.c, sp62/sp62.scn, sp64/init.c,
sp64/sp64.scn: Add more test cases highlighted on SPARC at -O2, x86
at -Os and m68k at -Os. Fix typos.
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 ], |