diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
commit | 6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch) | |
tree | d08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/spheapprot/init.c | |
parent | tests/psxtests: Use <rtems/test.h> (diff) | |
download | rtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2 |
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spheapprot/init.c')
-rw-r--r-- | testsuites/sptests/spheapprot/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/testsuites/sptests/spheapprot/init.c b/testsuites/sptests/spheapprot/init.c index d57ec3eddf..e7a77fdf93 100644 --- a/testsuites/sptests/spheapprot/init.c +++ b/testsuites/sptests/spheapprot/init.c @@ -22,8 +22,13 @@ #include <bsp.h> +#include <rtems/test.h> #include <rtems/score/heapimpl.h> +#include <tmacros.h> + +const char rtems_test_name[] = "SPHEAPPROT"; + #ifdef HEAP_PROTECTION static void test_heap_block_error(Heap_Control *heap, Heap_Block *block) { @@ -121,11 +126,11 @@ static rtems_task Init(rtems_task_argument argument) { - puts( "\n\n*** TEST HEAP PROTECTION ***" ); + TEST_BEGIN(); test_heap_protection(); - puts( "*** END OF TEST HEAP PROTECTION ***" ); + TEST_END(); exit(0); } @@ -140,6 +145,8 @@ static rtems_task Init(rtems_task_argument argument) #define CONFIGURE_MAXIMUM_TASKS 2 #define CONFIGURE_MAXIMUM_DRIVERS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #include <rtems/confdefs.h> |