5
Line | |
---|
1 | #ifdef HAVE_CONFIG_H |
---|
2 | #include "config.h" |
---|
3 | #endif |
---|
4 | |
---|
5 | #include "../spfatal_support/spfatal.h" |
---|
6 | |
---|
7 | /* |
---|
8 | * Malloc Initialization Error |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-2010. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #include <rtems/malloc.h> |
---|
19 | #include <rtems/libcsupport.h> |
---|
20 | |
---|
21 | #define FATAL_ERROR_TEST_NAME "9" |
---|
22 | #define FATAL_ERROR_DESCRIPTION "Bad heap address to malloc" |
---|
23 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE |
---|
24 | #define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_NO_MEMORY_FOR_HEAP |
---|
25 | |
---|
26 | static void force_error(void) |
---|
27 | { |
---|
28 | RTEMS_Malloc_Initialize( NULL, 0, NULL ); |
---|
29 | /* we will not run this far */ |
---|
30 | } |
---|
31 | |
---|
32 | #include "../spfatal_support/spfatalimpl.h" |
---|
Note: See
TracBrowser
for help on using the repository browser.