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

@@ -14,6 +14,8 @@
#include <tmacros.h>
#include "test_support.h"
const char rtems_test_name[] = "SPTIMER_ERR 2";
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine Delayed_routine(
@@ -25,7 +27,7 @@ rtems_task Init(
rtems_task_argument argument
)
{
puts( "\n\n*** TEST SPTIMER_ERR02 ***" );
TEST_BEGIN();
rtems_status_code status;
rtems_time_of_day time;
@@ -197,7 +199,7 @@ rtems_task Init(
" - before RTEMS_INVALID_CLOCK\n"
);
puts( "*** END OF TEST SPTIMER_ERR02 ***" );
TEST_END();
rtems_test_exit(0);
}
@@ -221,6 +223,8 @@ rtems_timer_service_routine Delayed_routine(
#define CONFIGURE_MAXIMUM_TIMERS 1
#define CONFIGURE_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2)
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_EXTRA_TASK_STACKS (1 * RTEMS_MINIMUM_STACK_SIZE)