diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-09 14:29:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-09 14:29:33 +0000 |
commit | 38cc1e1b214a5daf599ef4fd61908b40cdf1d84a (patch) | |
tree | 874320d7ea74ebbd8890e02ef8d6f560c88d79e5 /testsuites/psxtests/psximfs02 | |
parent | 2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-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/psximfs02')
-rw-r--r-- | testsuites/psxtests/psximfs02/init.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/testsuites/psxtests/psximfs02/init.c b/testsuites/psxtests/psximfs02/init.c index 7482fbc528..cafe232e17 100644 --- a/testsuites/psxtests/psximfs02/init.c +++ b/testsuites/psxtests/psximfs02/init.c @@ -18,8 +18,8 @@ #include <fcntl.h> #include <errno.h> #include <rtems/libio.h> +#include <rtems/libcsupport.h> -extern Heap_Control *RTEMS_Malloc_Heap; void IMFS_dump( void ); rtems_task Init( rtems_task_argument argument @@ -85,8 +85,7 @@ rtems_task Init( rtems_test_assert( errno == EACCES ); puts( "Allocate most of heap" ); - _Heap_Get_information( RTEMS_Malloc_Heap, &Info ); - alloc_ptr = malloc( Info.Free.largest - 150 ); + alloc_ptr = malloc( malloc_free_space() - 150 ); puts( "Attempt to mount a fs at /dir01 -- expect ENOMEM" ); status = mount( NULL, @@ -101,8 +100,7 @@ rtems_task Init( free( alloc_ptr ); puts( "Allocate most of heap" ); - _Heap_Get_information( RTEMS_Malloc_Heap, &Info ); - alloc_ptr = malloc( Info.Free.largest - 4 ); + alloc_ptr = malloc( malloc_free_space() - 4 ); puts( "Changing directory to /" ); status = chdir( "/" ); |