source: rtems/testsuites/sptests/spfatal09/testcase.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 802 bytes
Line 
1/*
2 *  Malloc Initialization Error
3 *
4 *  COPYRIGHT (c) 1989-2010.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 */
11
12#include <rtems/malloc.h>
13#include <rtems/libcsupport.h>
14
15#define FATAL_ERROR_TEST_NAME            "9"
16#define FATAL_ERROR_DESCRIPTION          "Bad heap address to malloc"
17#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
18#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
19#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_NO_MEMORY
20
21char Malloc_Heap[ 1 ] CPU_STRUCTURE_ALIGNMENT;
22
23void force_error()
24{
25  RTEMS_Malloc_Initialize( Malloc_Heap, sizeof(Malloc_Heap), 0 );
26
27  /* we will not run this far */
28}
Note: See TracBrowser for help on using the repository browser.