summaryrefslogtreecommitdiffstats
path: root/spec/rtems/type/val/type.yml
blob: 653b636b5491e270a56c3df11d1d438f71fc3f42 (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
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: []
test-actions:
- action-brief: |
    Validate the ${../if/id-none:/name} constant.
  action-code: |
    /* Nothing to do */
  checks:
  - brief: |
      Assert that ${../if/id-none:/name} cannot be associated with an object
      because it has an object index outside the range of valid object indices.
    code: |
      RTEMS_STATIC_ASSERT(
        ( ( RTEMS_ID_NONE >> OBJECTS_INDEX_START_BIT ) &
          OBJECTS_INDEX_VALID_BITS ) < OBJECTS_INDEX_MINIMUM,
        ID_NONE
      );
    links:
    - role: validation
      uid: ../req/id-none
  links: []
- action-brief: |
    Validate the ${../if/no-timeout:/name} constant.
  action-code: |
    /* Nothing to do */
  checks:
  - brief: |
      Assert that ${../if/no-timeout:/name} is a compile time constant which
      evaluates to a value of zero.
    code: |
      RTEMS_STATIC_ASSERT( RTEMS_NO_TIMEOUT == 0, NO_TIMEOUT );
    links:
    - role: validation
      uid: ../req/no-timeout
  links: []
test-brief: |
  Tests some ${../if/group:/name} interfaces.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes:
- rtems.h
- rtems/score/objectimpl.h
test-local-includes: []
test-setup: null
test-stop: null
test-support: null
test-target: testsuites/validation/tc-type.c
test-teardown: null
type: test-case