summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/malloctest
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/malloctest
parenttests/fstests: Remove duplicate begin/end messages (diff)
downloadrtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/malloctest')
-rw-r--r--testsuites/libtests/malloctest/init.c4
-rw-r--r--testsuites/libtests/malloctest/system.h2
-rw-r--r--testsuites/libtests/malloctest/task1.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c
index 0cdbe844f4..f8418428f7 100644
--- a/testsuites/libtests/malloctest/init.c
+++ b/testsuites/libtests/malloctest/init.c
@@ -35,6 +35,8 @@
#include <rtems/score/protectedheap.h>
#include <rtems/malloc.h>
+const char rtems_test_name[] = "MALLOCTEST";
+
/*
* A simple test of realloc
*/
@@ -1249,7 +1251,7 @@ rtems_task Init(
rtems_time_of_day time;
rtems_status_code status;
- puts( "\n\n*** MALLOC TEST ***" );
+ TEST_BEGIN();
build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
status = rtems_clock_set( &time );
diff --git a/testsuites/libtests/malloctest/system.h b/testsuites/libtests/malloctest/system.h
index 8550c8a0f6..58fcf19741 100644
--- a/testsuites/libtests/malloctest/system.h
+++ b/testsuites/libtests/malloctest/system.h
@@ -39,6 +39,8 @@ void blow_stack( void );
#define CONFIGURE_MALLOC_STATISTICS
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#include <rtems/confdefs.h>
diff --git a/testsuites/libtests/malloctest/task1.c b/testsuites/libtests/malloctest/task1.c
index 1416ae12c6..b365a088e0 100644
--- a/testsuites/libtests/malloctest/task1.c
+++ b/testsuites/libtests/malloctest/task1.c
@@ -42,7 +42,7 @@ rtems_task Task_1_through_5(
bool malloc_walk_ok;
if ( passes++ > NUM_PASSES ) {
- puts("*** END OF MALLOC TEST ***");
+ TEST_END();
rtems_test_exit(0);
}