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

This commit is contained in:
Sebastian Huber
2014-03-10 16:31:43 +01:00
parent 840ae715a9
commit 9391f6d663
26 changed files with 95 additions and 25 deletions

View File

@@ -11,6 +11,8 @@
#include "config.h"
#endif
#include <rtems/test.h>
#include <bsp.h> /* for device driver prototypes */
#include <stdio.h>
@@ -19,13 +21,15 @@
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
const char rtems_test_name[] = "HELLO WORLD";
rtems_task Init(
rtems_task_argument ignored
)
{
printf( "\n\n*** HELLO WORLD TEST ***\n" );
rtems_test_begin();
printf( "Hello World\n" );
printf( "*** END OF HELLO WORLD TEST ***\n" );
rtems_test_end();
exit( 0 );
}
@@ -39,5 +43,7 @@ rtems_task Init(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_INIT
#include <rtems/confdefs.h>