diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-17 16:54:23 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-17 16:56:17 +0100 |
commit | 77998753b522e28f1b6f92ebab407e1fcaef5296 (patch) | |
tree | aff584f670dd662e85cba95aa96f97f802f52f04 /testsuites/psxtests/psxobj01 | |
parent | Add functions for greedy workspace allocation (diff) | |
download | rtems-77998753b522e28f1b6f92ebab407e1fcaef5296.tar.bz2 |
Use alternative API
Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
Diffstat (limited to 'testsuites/psxtests/psxobj01')
-rw-r--r-- | testsuites/psxtests/psxobj01/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxobj01/init.c b/testsuites/psxtests/psxobj01/init.c index 8d3cdcb9a2..070b891023 100644 --- a/testsuites/psxtests/psxobj01/init.c +++ b/testsuites/psxtests/psxobj01/init.c @@ -16,7 +16,6 @@ #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ #include <tmacros.h> -#include "test_support.h" rtems_task Init( rtems_task_argument ignored @@ -70,7 +69,7 @@ rtems_task Init( /* out of memory error ONLY when POSIX is enabled */ puts( "INIT - _Objects_Set_name fails - out of memory" ); - Allocate_majority_of_workspace( 1 ); + rtems_workspace_greedy_allocate( 0 ); bc = _Objects_Set_name( &TestClass, &_Thread_Executing->Object, name ); rtems_test_assert( bc == false ); |