Use alternative API

Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate().  Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
This commit is contained in:
Sebastian Huber
2012-02-17 16:54:23 +01:00
parent 622d6703d3
commit 77998753b5
6 changed files with 5 additions and 70 deletions

View File

@@ -16,11 +16,11 @@
#define FATAL_ERROR_EXPECTED_ERROR RTEMS_NO_MEMORY
#include <rtems/libio.h>
#include "test_support.h"
#include <rtems/malloc.h>
void force_error()
{
Allocate_majority_of_heap( 1 );
rtems_heap_greedy_allocate( 0 );
rtems_libio_init();
}