source: rtems/testsuites/sptests/spfatal22/testcase.h @ 77998753

4.115
Last change on this file since 77998753 was 77998753, checked in by Sebastian Huber <sebastian.huber@…>, on 02/17/12 at 15:54:23

Use alternative API

Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().

  • Property mode set to 100644
File size: 688 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2010.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#define FATAL_ERROR_TEST_NAME            "FATAL 22"
13#define FATAL_ERROR_DESCRIPTION          "libio init out of memory"
14#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
15#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
16#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_NO_MEMORY
17
18#include <rtems/libio.h>
19#include <rtems/malloc.h>
20
21void force_error()
22{
23  rtems_heap_greedy_allocate( 0 );
24
25  rtems_libio_init();
26}
Note: See TracBrowser for help on using the repository browser.