summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxpipe01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-09 14:29:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-09 14:29:33 +0000
commit38cc1e1b214a5daf599ef4fd61908b40cdf1d84a (patch)
tree874320d7ea74ebbd8890e02ef8d6f560c88d79e5 /testsuites/psxtests/psxpipe01
parent2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-38cc1e1b214a5daf599ef4fd61908b40cdf1d84a.tar.bz2
2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing * psxchroot01/test.c, psximfs01/init.c, psximfs02/init.c, psxpipe01/init.c: Eliminate most references to RTEMS_Malloc_Heap.
Diffstat (limited to 'testsuites/psxtests/psxpipe01')
-rw-r--r--testsuites/psxtests/psxpipe01/init.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxpipe01/init.c b/testsuites/psxtests/psxpipe01/init.c
index 49d2e00fc2..7ef2e31e32 100644
--- a/testsuites/psxtests/psxpipe01/init.c
+++ b/testsuites/psxtests/psxpipe01/init.c
@@ -16,10 +16,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
-
-#include <rtems/score/heap.h>
-
-extern Heap_Control *RTEMS_Malloc_Heap;
+#include <rtems/libcsupport.h>
rtems_task Init(
rtems_task_argument not_used
@@ -29,7 +26,6 @@ rtems_task Init(
int dummy_fd[2] = {0,0};
int status = 0;
void *alloc_ptr = (void *)0;
- Heap_Information_block Info;
puts( "*** TEST POSIX PIPE CREATION - 01 ***" );
@@ -54,8 +50,7 @@ rtems_task Init(
status |= close( fd[1] );
rtems_test_assert( status == 0 );
- _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
- alloc_ptr = malloc(Info.Free.largest-4);
+ alloc_ptr = malloc( malloc_free_space() - 4 );
/* case where mkfifo fails */
puts( "Init - attempt to create pipe -- expect ENOMEM" );