summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/malloc02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 08:10:40 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-20 09:10:26 +0100
commitf8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133 (patch)
tree851dc4a6921d6cc7936aefa6343c516fff452dd8 /testsuites/libtests/malloc02
parenttests/fstests: Remove duplicate begin/end messages (diff)
downloadrtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/malloc02')
-rw-r--r--testsuites/libtests/malloc02/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/libtests/malloc02/init.c b/testsuites/libtests/malloc02/init.c
index f2fd55ef64..dc603b86a6 100644
--- a/testsuites/libtests/malloc02/init.c
+++ b/testsuites/libtests/malloc02/init.c
@@ -13,6 +13,8 @@
#include <tmacros.h>
+const char rtems_test_name[] = "MALLOC 2";
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine test_operation_from_isr(rtems_id timer, void *arg);
@@ -40,7 +42,7 @@ rtems_task Init(
rtems_id timer;
void *pointer2;
- puts( "\n\n*** TEST MALLOC 02 ***" );
+ TEST_BEGIN();
puts( "malloc memory to free from ISR" );
Pointer1 = malloc( 20 );
@@ -73,7 +75,7 @@ rtems_task Init(
pointer2 = malloc(20);
rtems_test_assert( pointer2 );
- puts( "*** END OF TEST MALLOC 02 ***" );
+ TEST_END();
rtems_test_exit( 0 );
}
@@ -84,6 +86,8 @@ rtems_task Init(
#define CONFIGURE_MALLOC_DIRTY
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_MAXIMUM_TIMERS 1