summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/val/basedefs-no-debug.yml
blob: 33da409dd569fa55dc42f921e7d986c9f0ac4778 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2022 embedded brains GmbH & Co. KG
enabled-by: true
links: []
test-actions:
- action-brief: |
    Expand and stringify ${../if/unreachable:/name}.
  action-code: |
    const char *s;

    s = RTEMS_XSTRING( RTEMS_UNREACHABLE() );
  checks:
  - brief: |
      Check that the string is equal to the expected statement.
    code: |
      T_step_true(
        ${.:/step},
        IsEqualIgnoreWhiteSpace(
          s,
          "__builtin_unreachable()"
        )
      );
    links:
    - role: validation
      uid: ../req/unreachable-gnuc
  links: []
- action-brief: |
    Expand ${../if/function-name:/name}.
  action-code: |
    const char *s;

    s = RTEMS_FUNCTION_NAME;
  checks:
  - brief: |
      Check that the string is equal to the expected function name.
    code: |
      T_step_true(
        ${.:/step},
        IsEqualIgnoreWhiteSpace(
          s,
          "RtemsBasedefsValBasedefsNoDebug_Action_1"
        )
      );
    links:
    - role: validation
      uid: ../req/function-name
  links: []
test-brief: |
  Tests the basedefs macros where RTEMS_DEBUG is disabled.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes:
- rtems.h
test-local-includes:
- tx-support.h
test-setup: null
test-stop: null
test-support: null
test-target: testsuites/validation/tc-basedefs-no-debug.c
test-teardown: null
type: test-case