Line | |
---|
1 | SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause |
---|
2 | copyrights: |
---|
3 | - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) |
---|
4 | enabled-by: true |
---|
5 | links: |
---|
6 | - role: validation |
---|
7 | uid: ../req/ident |
---|
8 | test-actions: |
---|
9 | - action: | |
---|
10 | ${../../req/ident:/test-run}( |
---|
11 | id_local_object, |
---|
12 | ClassicPartIdentAction |
---|
13 | ); |
---|
14 | checks: [] |
---|
15 | description: | |
---|
16 | Run the generic object identification tests for Classic API partition class |
---|
17 | objects defined by ${../../req/ident}. |
---|
18 | links: [] |
---|
19 | test-brief: Test the ${../if/ident:/name} directive. |
---|
20 | test-description: null |
---|
21 | test-epilogue: null |
---|
22 | test-fixture: null |
---|
23 | test-header: null |
---|
24 | test-includes: [] |
---|
25 | test-local-includes: |
---|
26 | - tr-object-ident.h |
---|
27 | test-prologue: | |
---|
28 | static long area[32]; |
---|
29 | rtems_status_code sc; |
---|
30 | rtems_id id_local_object; |
---|
31 | |
---|
32 | sc = rtems_partition_create( |
---|
33 | ClassicObjectIdentName, |
---|
34 | area, |
---|
35 | sizeof( area ), |
---|
36 | sizeof( area ), |
---|
37 | RTEMS_DEFAULT_ATTRIBUTES, |
---|
38 | &id_local_object |
---|
39 | ); |
---|
40 | T_assert_rsc_success( sc ); |
---|
41 | test-support: | |
---|
42 | static rtems_status_code ClassicPartIdentAction( |
---|
43 | rtems_name name, |
---|
44 | uint32_t node, |
---|
45 | rtems_id *id |
---|
46 | ) |
---|
47 | { |
---|
48 | return rtems_partition_ident( name, node, id ); |
---|
49 | } |
---|
50 | test-target: testsuites/validation/tc-part-ident.c |
---|
51 | type: test-case |
---|
Note: See
TracBrowser
for help on using the repository browser.