source: rtems/testsuites/psxtests/psxfatal02/init.c @ 3b4795b4

5
Last change on this file since 3b4795b4 was 3b4795b4, checked in by Sebastian Huber <sebastian.huber@…>, on 02/14/20 at 10:20:42

config: Remove CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE

The CONFIGURE_HAS_OWN_INIT_TASK_TABLE and
CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE are the last *_HAS_OWN_*
configuration options. These two options are probably unused, see also:

Removing them simplifies the configuration. If there is a real user need
which shows up after the removal, we can resurrect them on demand.

Using CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE would have required the
use of the undocumented CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME and
CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE configuration options.

Update #3874.

  • Property mode set to 100644
File size: 782 bytes
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#define FATAL_ERROR_TEST_NAME            "2"
12#define FATAL_ERROR_DESCRIPTION \
13        "POSIX API Init thread create failure -- no memory for stack"
14#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
15#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED
16
17static void *stack_allocator(size_t unused)
18{
19  return NULL;
20}
21
22static void stack_deallocator(void *unused)
23{
24}
25
26#define CONFIGURE_TASK_STACK_ALLOCATOR stack_allocator
27
28#define CONFIGURE_TASK_STACK_DEALLOCATOR stack_deallocator
29
30static void force_error(void)
31{
32  /* we will not run this far */
33}
34
35#include "../psxfatal_support/psxfatalimpl.h"
Note: See TracBrowser for help on using the repository browser.