diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-28 23:07:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-28 23:07:56 +0000 |
commit | f55f60591cdc27bf14eaa455b661420b2a4fb682 (patch) | |
tree | cacc6e50c34131a01e9d410e82130482c30f2028 /testsuites/sptests/sp09/screen03.c | |
parent | 2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-f55f60591cdc27bf14eaa455b661420b2a4fb682.tar.bz2 |
2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp09/screen01.c, sp09/screen02.c, sp09/screen03.c, sp09/screen05.c,
sp09/screen09.c, sp09/screen14.c, sp09/sp09.scn, sp28/init.c,
sp28/sp28.scn, sp43/init.c: Add more error cases uncovered by uC5282
coverage runs.
Diffstat (limited to 'testsuites/sptests/sp09/screen03.c')
-rw-r--r-- | testsuites/sptests/sp09/screen03.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/sptests/sp09/screen03.c b/testsuites/sptests/sp09/screen03.c index 7381bd6cb6..993bc8b479 100644 --- a/testsuites/sptests/sp09/screen03.c +++ b/testsuites/sptests/sp09/screen03.c @@ -24,6 +24,7 @@ void Screen3() rtems_status_code status; bool skipUnsatisfied; + /* task create bad name */ task_name = 1; status = rtems_task_create( 0, @@ -40,6 +41,22 @@ void Screen3() ); puts( "TA1 - rtems_task_create - RTEMS_INVALID_NAME" ); + /* null ID */ + status = rtems_task_create( + Task_name[ 1 ], + 4, + RTEMS_MINIMUM_STACK_SIZE, + RTEMS_DEFAULT_MODES, + RTEMS_DEFAULT_ATTRIBUTES, + NULL + ); + fatal_directive_status( + status, + RTEMS_INVALID_ADDRESS, + "rtems_task_create with NULL ID param" + ); + puts( "TA1 - rtems_task_create - RTEMS_INVALID_ADDRESS" ); + /* * If the bsp provides its own stack allocator, then * skip the test that tries to allocate a stack that is too big. |