source: rtems/testsuites/sptests/spfatal04/init.c @ 1a48cbf

5
Last change on this file since 1a48cbf was 1a48cbf, checked in by Sebastian Huber <sebastian.huber@…>, on 11/11/19 at 19:08:46

sptests: Avoid include path magic

Update #3818.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#include "../spfatal_support/spfatal.h"
6
7/*
8 * Classic API Init task create failure
9 */
10
11/*
12 *  Way too much stack space.  Should generate a fatal error
13 *  on the init task create.
14 */
15#define CONFIGURE_HAS_OWN_INIT_TASK_TABLE
16#define CONFIGURE_INIT_TASK_STACK_SIZE   RTEMS_MINIMUM_STACK_SIZE
17rtems_initialization_tasks_table Initialization_tasks[] = {
18  { rtems_build_name('I', 'N', 'I', ' '),
19    RTEMS_MINIMUM_STACK_SIZE,
20    1,
21    RTEMS_DEFAULT_ATTRIBUTES,
22    Init,
23    RTEMS_DEFAULT_MODES,
24    0
25  }
26};
27#define CONFIGURE_INIT_TASK_TABLE Initialization_tasks
28#define CONFIGURE_INIT_TASK_TABLE_SIZE \
29  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
30
31#define FATAL_ERROR_TEST_NAME            "4"
32#define FATAL_ERROR_DESCRIPTION \
33        "Classic API call rtems_fatal_error_occurred"
34#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
35#define FATAL_ERROR_EXPECTED_ERROR       0xdead
36
37static void force_error(void)
38{
39  rtems_fatal_error_occurred( 0xdead );
40  /* we will not run this far */
41}
42
43#include "../spfatal_support/spfatalimpl.h"
Note: See TracBrowser for help on using the repository browser.