summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/malloctest/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 16:05:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 16:05:32 +0000
commite1a22c112c47779a598a9b2180a9130a2d58024e (patch)
tree1ddd4a9d701ddbc7f84b18ea3fccadf677f0e3ec /testsuites/libtests/malloctest/task1.c
parent2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-e1a22c112c47779a598a9b2180a9130a2d58024e.tar.bz2
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* malloctest/init.c, malloctest/task1.c: Add test for posix_memalign.
Diffstat (limited to 'testsuites/libtests/malloctest/task1.c')
-rw-r--r--testsuites/libtests/malloctest/task1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/libtests/malloctest/task1.c b/testsuites/libtests/malloctest/task1.c
index 575dc5189b..8568710ba5 100644
--- a/testsuites/libtests/malloctest/task1.c
+++ b/testsuites/libtests/malloctest/task1.c
@@ -14,8 +14,8 @@
*/
#include "system.h"
-#include <rtems/libcsupport.h> /* for malloc_dump, malloc_walk */
-#include <string.h> /* for memset */
+#include <rtems/malloc.h>
+#include <string.h>
#include <stdlib.h>
#define NUM_PASSES 100
@@ -55,7 +55,7 @@ rtems_task Task_1_through_5(
}
printf("mallocing %d bytes\n",mem_amt);
memset( mem_ptr, mem_amt, mem_amt );
- malloc_dump();
+ malloc_report_statistics();
malloc_walk(1,FALSE);
status = rtems_task_wake_after( task_number( tid ) * 1 * TICKS_PER_SECOND/4 );
for (i=0; i < mem_amt; i++)