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/malloc.h>
|
||||
|
||||
const char rtems_test_name[] = "MALLOC 5";
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
@@ -25,7 +27,7 @@ rtems_task Init(
|
||||
int sc;
|
||||
rtems_malloc_statistics_t stats;
|
||||
|
||||
puts( "\n\n*** TEST MALLOC05 ***" );
|
||||
TEST_BEGIN();
|
||||
|
||||
puts( "malloc_get_statistics( NULL ) - returns -1" );
|
||||
sc = malloc_get_statistics( NULL );
|
||||
@@ -35,7 +37,7 @@ rtems_task Init(
|
||||
sc = malloc_get_statistics( &stats );
|
||||
rtems_test_assert( sc == 0 );
|
||||
|
||||
puts( "*** END OF TEST MALLOC05 ***" );
|
||||
TEST_END();
|
||||
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
@@ -46,6 +48,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