5
Line | |
---|
1 | #ifdef HAVE_CONFIG_H |
---|
2 | #include "config.h" |
---|
3 | #endif |
---|
4 | |
---|
5 | #include "../psxfatal_support/psxfatal.h" |
---|
6 | |
---|
7 | /* |
---|
8 | * Classic API Init task create failure |
---|
9 | */ |
---|
10 | |
---|
11 | #include <errno.h> |
---|
12 | |
---|
13 | #include <rtems/posix/posixapi.h> |
---|
14 | |
---|
15 | /* |
---|
16 | * Way too much stack space. Should generate a fatal error |
---|
17 | * on the init task create. |
---|
18 | */ |
---|
19 | #define CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE |
---|
20 | #define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE 0 |
---|
21 | posix_initialization_threads_table POSIX_Initialization_threads[] = { |
---|
22 | { NULL, /* bad thread entry */ |
---|
23 | 0 |
---|
24 | } |
---|
25 | }; |
---|
26 | |
---|
27 | #define CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME POSIX_Initialization_threads |
---|
28 | |
---|
29 | #define CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE \ |
---|
30 | sizeof(CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME) / \ |
---|
31 | sizeof(posix_initialization_threads_table) |
---|
32 | |
---|
33 | #define FATAL_ERROR_TEST_NAME "1" |
---|
34 | #define FATAL_ERROR_DESCRIPTION \ |
---|
35 | "POSIX API Init thread create failure - NULL entry" |
---|
36 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE |
---|
37 | #define FATAL_ERROR_EXPECTED_ERROR \ |
---|
38 | INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED |
---|
39 | |
---|
40 | static void force_error(void) |
---|
41 | { |
---|
42 | /* we will not run this far */ |
---|
43 | } |
---|
44 | |
---|
45 | #include "../psxfatal_support/psxfatalimpl.h" |
---|
Note: See
TracBrowser
for help on using the repository browser.