forked from Imagelibrary/rtems
tests/libtests: Use <rtems/test.h>
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
#include "test_support.h"
|
||||
#include <rtems/dumpbuf.h>
|
||||
|
||||
const char rtems_test_name[] = "DUMPBUF 1";
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void do_test(int length);
|
||||
@@ -36,14 +38,14 @@ rtems_task Init(
|
||||
{
|
||||
int i;
|
||||
|
||||
puts( "\n\n*** TEST DUMPBUF01 ***" );
|
||||
TEST_BEGIN();
|
||||
|
||||
for ( i = 0 ; i < sizeof(Buffer) ; i++ ) {
|
||||
do_test( i );
|
||||
}
|
||||
do_test( -1 );
|
||||
|
||||
puts( "*** END OF TEST DUMPBUF01 ***" );
|
||||
TEST_END();
|
||||
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
@@ -54,6 +56,8 @@ rtems_task Init(
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
|
||||
Reference in New Issue
Block a user