forked from Imagelibrary/rtems
tests/libtests: Use <rtems/test.h>
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#include <tmacros.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "MALLOC 3";
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
@@ -23,13 +25,13 @@ rtems_task Init(
|
||||
{
|
||||
void *p1;
|
||||
|
||||
puts( "\n\n*** TEST MALLOC03 ***" );
|
||||
TEST_BEGIN();
|
||||
|
||||
p1 = __builtin_frame_address(0);
|
||||
printf("Attempt to free stack memory\n");
|
||||
free( p1 );
|
||||
|
||||
puts( "*** END OF TEST MALLOC03 ***" );
|
||||
TEST_END();
|
||||
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
@@ -40,6 +42,8 @@ rtems_task Init(
|
||||
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_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