samples/base_mp: Check directive status

This commit is contained in:
Sebastian Huber
2016-03-24 08:40:19 +01:00
parent 6f9c3e5537
commit a8ac273c85

View File

@@ -35,10 +35,14 @@ rtems_task Init(
task_name = rtems_build_name( 'T', 'A', '1', ' ' ); task_name = rtems_build_name( 'T', 'A', '1', ' ' );
status = rtems_task_create( task_name, 1, RTEMS_MINIMUM_STACK_SIZE, status = rtems_task_create( task_name, 1, RTEMS_MINIMUM_STACK_SIZE,
RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid ); RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid );
rtems_test_assert(status == RTEMS_SUCCESSFUL);
status = rtems_task_start( status = rtems_task_start(
tid, tid,
Application_task, Application_task,
Multiprocessing_configuration.node Multiprocessing_configuration.node
); );
status = rtems_task_delete( RTEMS_SELF ); rtems_test_assert(status == RTEMS_SUCCESSFUL);
rtems_task_delete( RTEMS_SELF );
} }