tests/sptests: Use <rtems/test.h>

This commit is contained in:
Sebastian Huber
2014-03-25 08:06:21 +01:00
parent 698c2e504a
commit 6c0301daad
224 changed files with 896 additions and 313 deletions

View File

@@ -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)