* sp07/init.c: Improve coverage.
This commit is contained in:
Sebastian Huber
2011-03-10 16:36:51 +00:00
parent 627b70e10a
commit b2e48ffe6b
2 changed files with 46 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2011-03-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sp07/init.c: Improve coverage.
2011-03-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* spwkspace/init.c: Adjust test to account for recent heap change on

View File

@@ -16,6 +16,40 @@
#define CONFIGURE_INIT
#include "system.h"
static void Task_harmless_extension_one(
rtems_tcb *unused_one
)
{
/* Do nothing */
}
static void Task_harmless_extension_two(
rtems_tcb *unused_one,
rtems_tcb *unused_two
)
{
/* Do nothing */
}
static bool Task_harmless_extension_true_two(
rtems_tcb *unused_one,
rtems_tcb *unused_two
)
{
return true;
}
static const rtems_extensions_table Harmless_extensions = {
Task_harmless_extension_true_two,
Task_harmless_extension_two,
Task_harmless_extension_two,
Task_harmless_extension_two,
Task_harmless_extension_two,
Task_harmless_extension_one,
Task_harmless_extension_one,
NULL
};
rtems_extensions_table Extensions = {
Task_create_extension, /* task create user extension */
Task_start_extension, /* task start user extension */
@@ -99,6 +133,14 @@ rtems_task Init(
"rtems_extension_ident"
);
puts( "rtems_extension_create - harmless -- OK" );
status = rtems_extension_create(
Extension_name[ 2 ],
&Harmless_extensions,
&Extension_id[ 2 ]
);
directive_failed( status, "rtems_extension_create #3" );
Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );
Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' );
Task_name[ 3 ] = rtems_build_name( 'T', 'A', '3', ' ' );