summaryrefslogtreecommitdiffstats
path: root/spec/rtems/sem/val/ident.yml
blob: d515aabdaa46a9f2975f9e3196b07f6756da9da6 (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
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
links:
- role: validation
  uid: ../req/ident
test-actions:
- action: |
    ${../../req/ident:/test-run}(
      id_local_object,
      ClassicSemIdentAction
    );
  checks: []
  description: |
    Run the generic object identification tests for Classic API semaphore class
    objects defined by ${../../req/ident}.
  links: []
test-brief: Test the ${../if/ident:/name} directive.
test-description: null
test-epilogue: |
  sc = rtems_semaphore_delete( id_local_object );
  T_rsc_success( sc );
test-fixture: null
test-header: null
test-includes: []
test-local-includes:
- tr-object-ident.h
test-prologue: |
  rtems_status_code sc;
  rtems_id id_local_object;

  sc = rtems_semaphore_create(
    ClassicObjectIdentName,
    0,
    RTEMS_DEFAULT_ATTRIBUTES,
    0,
    &id_local_object
  );
  T_assert_rsc_success( sc );
test-support: |
  static rtems_status_code ClassicSemIdentAction(
    rtems_name name,
    uint32_t   node,
    rtems_id  *id
  )
  {
    return rtems_semaphore_ident( name, node, id );
  }
test-target: testsuites/validation/tc-sem-ident.c
type: test-case