summaryrefslogtreecommitdiffstats
path: root/spec/testsuites/fatal-init-task-construct-failed.yml
blob: 9e518295216261df3de26ee92401f77cb872b663 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
links:
- role: requirement-refinement
  uid: validation
test-brief: |
  This validation test suite contains a test case which triggers a fatal error
  during system initialization.
test-code: |
  const char rtems_test_name[] = "${.:/test-suite-name}";

  #define FATAL_SYSINIT_RUN AcfgValFatalInitTaskConstructFailed_Run

  static void Init( rtems_task_argument arg )
  {
    (void) arg;
    rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, 1 );
  }

  #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

  #define CONFIGURE_MAXIMUM_TASKS 1

  #define CONFIGURE_MINIMUM_TASKS_WITH_USER_PROVIDED_STORAGE 1

  #define CONFIGURE_INIT_TASK_PRIORITY 0

  #define CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE RTEMS_MINIMUM_STACK_SIZE

  #define CONFIGURE_RTEMS_INIT_TASKS_TABLE

  #include "ts-fatal-sysinit.h"
test-description: null
test-includes: []
test-local-includes:
- tr-fatal-init-task-construct-failed.h
test-target: testsuites/validation/ts-fatal-init-task-construct-failed.c
type: test-suite