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

  sc = rtems_barrier_create(
    ClassicObjectLocalIdentName,
    RTEMS_DEFAULT_ATTRIBUTES,
    1,
    &id_local_object
  );
  T_assert_rsc_success( sc );
support: |
  static rtems_status_code ClassicBarrierIdentAction(
    rtems_name name,
    rtems_id  *id
  )
  {
    return rtems_barrier_ident( name, id );
  }
target: testsuites/validation/tc-barrier-ident.c
type: test-case