summaryrefslogtreecommitdiffstats
path: root/spec/testsuites/fatal-idle-thread-create-failed.yml
blob: 960663e6ddbfa798c67fb0452f6962e94780ca7c (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
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2022 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 is triggered by a fatal
  error during system initialization.
test-code: |
  const char rtems_test_name[] = "${.:/test-suite-name}";

  static bool CreateTask( rtems_tcb *executing, rtems_tcb *created )
  {
    (void) executing;
    (void) created;
    return false;
  }

  #define FATAL_SYSINIT_RUN ScoreThreadValFatalIdleThreadCreateFailed_Run

  #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

  #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION

  #define FATAL_SYSINIT_INITIAL_EXTENSION { .thread_create = CreateTask }

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