diff options
Diffstat (limited to 'testsuites/samples/base_sp')
-rw-r--r-- | testsuites/samples/base_sp/apptask.c | 2 | ||||
-rw-r--r-- | testsuites/samples/base_sp/init.c | 4 | ||||
-rw-r--r-- | testsuites/samples/base_sp/system.h | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/samples/base_sp/apptask.c b/testsuites/samples/base_sp/apptask.c index 379e5c3526..a7780d056b 100644 --- a/testsuites/samples/base_sp/apptask.c +++ b/testsuites/samples/base_sp/apptask.c @@ -41,6 +41,6 @@ rtems_task Application_task( "and has id of 0x%" PRIxrtems_id "\n", argument, tid ); - printf( "*** END OF SAMPLE SINGLE PROCESSOR APPLICATION ***\n" ); + TEST_END(); exit( 0 ); } diff --git a/testsuites/samples/base_sp/init.c b/testsuites/samples/base_sp/init.c index 8ad2eedecf..5dcbf6d8f5 100644 --- a/testsuites/samples/base_sp/init.c +++ b/testsuites/samples/base_sp/init.c @@ -19,6 +19,8 @@ /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); +const char rtems_test_name[] = "SAMPLE SINGLE PROCESSOR APPLICATION"; + #define ARGUMENT 0 rtems_task Init( @@ -29,7 +31,7 @@ rtems_task Init( rtems_id tid; rtems_status_code status; - printf( "\n\n*** SAMPLE SINGLE PROCESSOR APPLICATION ***\n" ); + TEST_BEGIN(); printf( "Creating and starting an application task\n" ); task_name = rtems_build_name( 'T', 'A', '1', ' ' ); diff --git a/testsuites/samples/base_sp/system.h b/testsuites/samples/base_sp/system.h index aa04d0a178..837b52d03d 100644 --- a/testsuites/samples/base_sp/system.h +++ b/testsuites/samples/base_sp/system.h @@ -12,6 +12,7 @@ */ #include <rtems.h> +#include <rtems/test.h> /* functions */ @@ -33,6 +34,8 @@ rtems_task Application_task( #define CONFIGURE_MAXIMUM_TASKS 2 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #include <rtems/confdefs.h> /* end of include file */ |