5
Line | |
---|
1 | #ifdef HAVE_CONFIG_H |
---|
2 | #include "config.h" |
---|
3 | #endif |
---|
4 | |
---|
5 | #include "../spfatal_support/spfatal.h" |
---|
6 | |
---|
7 | /* Test __assert_func with NULL function name |
---|
8 | * |
---|
9 | * COPYRIGHT (c) 1989-2009. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #include <rtems/score/wkspace.h> |
---|
18 | |
---|
19 | #define FATAL_ERROR_TEST_NAME "12" |
---|
20 | #define FATAL_ERROR_DESCRIPTION \ |
---|
21 | "_Heap_Initialize fails during RTEMS initialization" |
---|
22 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE |
---|
23 | #define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_TOO_LITTLE_WORKSPACE |
---|
24 | |
---|
25 | static void force_error(void) |
---|
26 | { |
---|
27 | Heap_Area area = { .begin = NULL, .size = 0 }; |
---|
28 | |
---|
29 | _Workspace_Handler_initialization( &area, 1, NULL ); |
---|
30 | /* we will not run this far */ |
---|
31 | } |
---|
32 | |
---|
33 | #include "../spfatal_support/spfatalimpl.h" |
---|
Note: See
TracBrowser
for help on using the repository browser.