summaryrefslogtreecommitdiffstats
path: root/spec/rtems/message/val/ident.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/message/val/ident.yml')
-rw-r--r--spec/rtems/message/val/ident.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/spec/rtems/message/val/ident.yml b/spec/rtems/message/val/ident.yml
new file mode 100644
index 00000000..2a1e9ff4
--- /dev/null
+++ b/spec/rtems/message/val/ident.yml
@@ -0,0 +1,49 @@
+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,
+ ClassicMessageIdentAction
+ );
+ checks: []
+ description: |
+ Run the generic object identification tests for Classic API message queue
+ class objects defined by ${../../req/ident}.
+ links: []
+test-brief: Test the ${../if/ident:/name} directive.
+test-description: null
+test-epilogue: null
+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_message_queue_create(
+ ClassicObjectIdentName,
+ 1,
+ 1,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ &id_local_object
+ );
+ T_assert_rsc_success( sc );
+test-support: |
+ static rtems_status_code ClassicMessageIdentAction(
+ rtems_name name,
+ uint32_t node,
+ rtems_id *id
+ )
+ {
+ return rtems_message_queue_ident( name, node, id );
+ }
+test-target: testsuites/validation/tc-message-ident.c
+type: test-case