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

This commit is contained in:
Sebastian Huber
2014-03-17 08:10:40 +01:00
parent 802d3ba712
commit f8b2eb03f7
82 changed files with 449 additions and 146 deletions

View File

@@ -26,6 +26,8 @@
#define CONFIGURE_INIT
#include "system.h"
const char rtems_test_name[] = "STACKCHK";
rtems_task Init(
rtems_task_argument argument
)
@@ -33,7 +35,7 @@ rtems_task Init(
rtems_time_of_day time;
rtems_status_code status;
puts( "\n\n*** TEST STACK CHECKER ***" );
TEST_BEGIN();
build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
status = rtems_clock_set( &time );
@@ -99,6 +101,6 @@ void Fatal_extension(
} else if ( error != rtems_build_name( 'T', 'A', '1', ' ' ) ) {
printk( "unexpected fatal error\n" );
} else {
printk( "*** END OF TEST STACK CHECKER ***\n" );
rtems_test_endk();
}
}

View File

@@ -48,7 +48,8 @@ void Fatal_extension(
);
#define CONFIGURE_INITIAL_EXTENSIONS \
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, Fatal_extension }
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, Fatal_extension }, \
RTEMS_TEST_INITIAL_EXTENSION
#include <rtems/confdefs.h>