diff options
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. |