forked from Imagelibrary/rtems
tests/sptests: Use <rtems/test.h>
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
|
||||
const char rtems_test_name[] = "SPFIFO 5";
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
rtems_task read_task(rtems_task_argument not_used);
|
||||
@@ -134,7 +136,7 @@ rtems_task Init(
|
||||
uint32_t released = 0;
|
||||
int flag = 1;
|
||||
|
||||
puts("\n*** FIFO / PIPE TESTS - 5 ***");
|
||||
TEST_BEGIN();
|
||||
|
||||
memset( sendBuf, '1', SEND_RCV_BUFSIZ - 30 );
|
||||
memset( sendBuf, '2', 29 );
|
||||
@@ -251,7 +253,7 @@ rtems_task Init(
|
||||
status = unlink("/fifo");
|
||||
rtems_test_assert(status == 0);
|
||||
|
||||
puts("*** END OF FIFO / PIPE OPEN TEST - 6 ***");
|
||||
TEST_END();
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
|
||||
@@ -263,6 +265,8 @@ rtems_task Init(
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 3
|
||||
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_BARRIERS 2
|
||||
|
||||
Reference in New Issue
Block a user