summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxobj01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-17 16:54:23 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-17 16:56:17 +0100
commit77998753b522e28f1b6f92ebab407e1fcaef5296 (patch)
treeaff584f670dd662e85cba95aa96f97f802f52f04 /testsuites/psxtests/psxobj01
parentAdd functions for greedy workspace allocation (diff)
downloadrtems-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.c3
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 );