summaryrefslogtreecommitdiffstats
path: root/testsuites/validation/tr-object-ident.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-29 16:31:25 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-29 17:19:42 +0200
commitc2d7376f0686a663e65e03dcc3922fa2c85cb530 (patch)
treed88572a6d048230f6bae2ef853550d7992481a6a /testsuites/validation/tr-object-ident.c
parentcpukit/include/rtems/confdefs/libpci.h: Manual file header clean up (diff)
downloadrtems-c2d7376f0686a663e65e03dcc3922fa2c85cb530.tar.bz2
validation: Use individual names for ident tests
Make the task configuration reusable. Update #3716.
Diffstat (limited to 'testsuites/validation/tr-object-ident.c')
-rw-r--r--testsuites/validation/tr-object-ident.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/validation/tr-object-ident.c b/testsuites/validation/tr-object-ident.c
index fac8767175..438c1f3333 100644
--- a/testsuites/validation/tr-object-ident.c
+++ b/testsuites/validation/tr-object-ident.c
@@ -99,6 +99,12 @@ typedef struct {
* @brief This member contains a copy of the corresponding
* RtemsReqIdent_Run() parameter.
*/
+ rtems_name name_local_object;
+
+ /**
+ * @brief This member contains a copy of the corresponding
+ * RtemsReqIdent_Run() parameter.
+ */
rtems_status_code ( *action )( rtems_name, uint32_t, rtems_id * );
struct {
@@ -182,7 +188,7 @@ static void RtemsReqIdent_Pre_Name_Prepare(
* While the ``name`` parameter is associated with an active object of
* the specified class .
*/
- ctx->name = ClassicObjectIdentName;
+ ctx->name = ctx->name_local_object;
break;
}
@@ -450,6 +456,7 @@ static T_fixture_node RtemsReqIdent_Node;
void RtemsReqIdent_Run(
rtems_id id_local_object,
+ rtems_name name_local_object,
rtems_status_code ( *action )( rtems_name, uint32_t, rtems_id * )
)
{
@@ -457,6 +464,7 @@ void RtemsReqIdent_Run(
ctx = &RtemsReqIdent_Instance;
ctx->id_local_object = id_local_object;
+ ctx->name_local_object = name_local_object;
ctx->action = action;
ctx = T_push_fixture( &RtemsReqIdent_Node, &RtemsReqIdent_Fixture );