forked from Imagelibrary/rtems
tests/libtests: Use <rtems/test.h>
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "termios_testdriver_intr.h"
|
||||
#include "tmacros.h"
|
||||
|
||||
const char rtems_test_name[] = "MOUSE 1";
|
||||
|
||||
#define UID_MESSAGE_COUNT 10
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
@@ -130,7 +132,7 @@ rtems_task Init(
|
||||
{
|
||||
bool more_data;
|
||||
|
||||
printf( "\n\n*** %s TEST ***\n", Mouse_Type_Long );
|
||||
TEST_BEGIN();
|
||||
|
||||
open_it();
|
||||
register_it();
|
||||
@@ -143,7 +145,7 @@ rtems_task Init(
|
||||
receive_uid_message();
|
||||
} while (more_data);
|
||||
close_it();
|
||||
printf( "*** END OF %s TEST ***\n", Mouse_Type_Long );
|
||||
TEST_END();
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
@@ -174,6 +176,8 @@ rtems_task Init(
|
||||
sizeof(struct MW_UID_MESSAGE) \
|
||||
)
|
||||
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
#define CONFIGURE_INIT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user