mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 04:39:18 +08:00
tests/samples: Use <rtems/test.h>
This commit is contained in:
@@ -37,6 +37,6 @@ rtems_task Application_task(
|
||||
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
|
||||
printf( "This task was invoked with the node argument (%" PRIdrtems_task_argument ")\n", node );
|
||||
printf( "This task has the id of 0x%" PRIxrtems_id "\n", tid );
|
||||
printf( "*** END OF SAMPLE MULTIPROCESSOR APPLICATION ***\n" );
|
||||
TEST_END();
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
const char rtems_test_name[] = "SAMPLE MULTIPROCESSOR APPLICATION";
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
@@ -26,7 +28,7 @@ rtems_task Init(
|
||||
rtems_id tid;
|
||||
rtems_status_code status;
|
||||
|
||||
printf( "\n\n*** SAMPLE MULTIPROCESSOR APPLICATION ***\n" );
|
||||
TEST_BEGIN();
|
||||
printf( "Creating and starting an application task\n" );
|
||||
task_name = rtems_build_name( 'T', 'A', '1', ' ' );
|
||||
status = rtems_task_create( task_name, 1, RTEMS_MINIMUM_STACK_SIZE,
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/test.h>
|
||||
|
||||
/* functions */
|
||||
|
||||
@@ -36,6 +37,8 @@ rtems_task Application_task(
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
/*
|
||||
* Put the overrides of default configuration parameters here.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user