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/screen01.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/screen01.c')
-rw-r--r-- | testsuites/sptests/sp09/screen01.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/sptests/sp09/screen01.c b/testsuites/sptests/sp09/screen01.c index 25b41eb5eb..4f94bba4c5 100644 --- a/testsuites/sptests/sp09/screen01.c +++ b/testsuites/sptests/sp09/screen01.c @@ -2,10 +2,6 @@ * * This routine generates error screen 1 for test 9. * - * Input parameters: NONE - * - * Output parameters: NONE - * * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * @@ -26,6 +22,16 @@ void Screen1() rtems_task_priority previous_priority; rtems_status_code status; + /* bad Id */ + status = rtems_task_is_suspended( 100 ); + fatal_directive_status( + status, + RTEMS_INVALID_ID, + "rtems_task_set_priority with illegal id" + ); + puts( "TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID" ); + + /* bad Id */ status = rtems_task_delete( 100 ); fatal_directive_status( status, |