forked from Imagelibrary/rtems
tests/sptests: Use <rtems/test.h>
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
const char rtems_test_name[] = "SP " TEST_NUMBER;
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
rtems_timer_service_routine TIMER_service_routine(
|
||||
@@ -57,7 +59,7 @@ rtems_task Init(
|
||||
rtems_time_of_day global_time;
|
||||
rtems_time_of_day time_to_fire;
|
||||
|
||||
puts( "\n\n*** TEST " TEST_NUMBER " ***" );
|
||||
TEST_BEGIN();
|
||||
|
||||
/* build timer name*/
|
||||
timer_name = rtems_build_name('T', 'M', '1', ' ');
|
||||
@@ -107,7 +109,7 @@ rtems_task Init(
|
||||
|
||||
puts( TSR_MODE " Timer fired after setting time forward -- OK");
|
||||
|
||||
puts( "*** END OF TEST " TEST_NUMBER " ***" );
|
||||
TEST_END();
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
|
||||
@@ -119,6 +121,8 @@ rtems_task Init(
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_INIT_TASK_PRIORITY (RTEMS_MINIMUM_PRIORITY + 1)
|
||||
|
||||
Reference in New Issue
Block a user