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

This commit is contained in:
Sebastian Huber
2014-03-25 08:06:21 +01:00
parent 698c2e504a
commit 6c0301daad
224 changed files with 896 additions and 313 deletions

View File

@@ -13,6 +13,8 @@
#include <tmacros.h>
const char rtems_test_name[] = "SPSTKALLOC";
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
@@ -46,7 +48,7 @@ rtems_task Init(
rtems_id taskId;
rtems_id taskId1;
puts( "\n\n*** TEST OF STACK ALLOCATOR PLUGIN ***" );
TEST_BEGIN();
puts( "Init - create task TA1 to use custom stack allocator - OK" );
rc = rtems_task_create(
@@ -74,7 +76,7 @@ rtems_task Init(
rc = rtems_task_delete( taskId );
directive_failed( rc, "rtems_task_delete of TA1" );
puts( "*** END OF OF STACK ALLOCATOR PLUGIN TEST ***" );
TEST_END();
rtems_test_exit(0);
}
@@ -86,6 +88,8 @@ rtems_task Init(
#define CONFIGURE_TASK_STACK_ALLOCATOR StackAllocator
#define CONFIGURE_TASK_STACK_DEALLOCATOR StackDeallocator
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 3