RTEMS
Files | Classes | Macros | Enumerations | Functions | Variables

Files

file  tr-object-ident.c
 
file  tr-object-ident.h
 

Classes

struct  RtemsReqIdent_Context
 Test context for spec:/rtems/req/ident test case. More...
 

Macros

#define ClassicObjectIdentName   rtems_build_name( 'I', 'D', 'N', 'T' )
 

Enumerations

enum  RtemsReqIdent_Pre_Name { RtemsReqIdent_Pre_Name_Invalid, RtemsReqIdent_Pre_Name_Valid, RtemsReqIdent_Pre_Name_NA }
 
enum  RtemsReqIdent_Pre_Node {
  RtemsReqIdent_Pre_Node_Local, RtemsReqIdent_Pre_Node_Remote, RtemsReqIdent_Pre_Node_Invalid, RtemsReqIdent_Pre_Node_SearchAll,
  RtemsReqIdent_Pre_Node_SearchOther, RtemsReqIdent_Pre_Node_SearchLocal, RtemsReqIdent_Pre_Node_NA
}
 
enum  RtemsReqIdent_Pre_Id { RtemsReqIdent_Pre_Id_NullPtr, RtemsReqIdent_Pre_Id_Valid, RtemsReqIdent_Pre_Id_NA }
 
enum  RtemsReqIdent_Post_Status {
  RtemsReqIdent_Post_Status_Ok, RtemsReqIdent_Post_Status_InvAddr, RtemsReqIdent_Post_Status_InvName, RtemsReqIdent_Post_Status_InvNode,
  RtemsReqIdent_Post_Status_NA
}
 
enum  RtemsReqIdent_Post_Id {
  RtemsReqIdent_Post_Id_Nop, RtemsReqIdent_Post_Id_NullPtr, RtemsReqIdent_Post_Id_LocalObj, RtemsReqIdent_Post_Id_RemoteObj,
  RtemsReqIdent_Post_Id_NA
}
 

Functions

static void RtemsReqIdent_Pre_Name_Prepare (RtemsReqIdent_Context *ctx, RtemsReqIdent_Pre_Name state)
 
static void RtemsReqIdent_Pre_Node_Prepare (RtemsReqIdent_Context *ctx, RtemsReqIdent_Pre_Node state)
 
static void RtemsReqIdent_Pre_Id_Prepare (RtemsReqIdent_Context *ctx, RtemsReqIdent_Pre_Id state)
 
static void RtemsReqIdent_Post_Status_Check (RtemsReqIdent_Context *ctx, RtemsReqIdent_Post_Status state)
 
static void RtemsReqIdent_Post_Id_Check (RtemsReqIdent_Context *ctx, RtemsReqIdent_Post_Id state)
 
static size_t RtemsReqIdent_Scope (void *arg, char *buf, size_t n)
 
static void RtemsReqIdent_Action (RtemsReqIdent_Context *ctx)
 
void RtemsReqIdent_Run (rtems_id id_local_object, rtems_status_code(*action)(rtems_name, uint32_t, rtems_id *))
 Runs the parameterized test case. More...
 

Variables

static RtemsReqIdent_Context RtemsReqIdent_Instance
 
static const char *const RtemsReqIdent_PreDesc_Name []
 
static const char *const RtemsReqIdent_PreDesc_Node []
 
static const char *const RtemsReqIdent_PreDesc_Id []
 
static const char *const *const RtemsReqIdent_PreDesc []
 
static T_fixture RtemsReqIdent_Fixture
 
static const uint8_t RtemsReqIdent_TransitionMap [][2]
 
struct {
   uint8_t   Skip: 1
 
   uint8_t   Pre_Name_NA: 1
 
   uint8_t   Pre_Node_NA: 1
 
   uint8_t   Pre_Id_NA: 1
 
RtemsReqIdent_TransitionInfo []
 
static T_fixture_node RtemsReqIdent_Node
 

Detailed Description

Function Documentation

◆ RtemsReqIdent_Run()

void RtemsReqIdent_Run ( rtems_id  id_local_object,
rtems_status_code(*)(rtems_name, uint32_t, rtems_id *)  action 
)

Runs the parameterized test case.

Parameters
id_local_objectis the identifier of an active object of the class under test with the name ClassicObjectIdentName.
actionis the action handler.

Definition at line 464 of file tr-object-ident.c.

Variable Documentation

◆ RtemsReqIdent_Fixture

T_fixture RtemsReqIdent_Fixture
static
Initial value:
= {
.setup = NULL,
.stop = NULL,
.teardown = NULL,
.scope = RtemsReqIdent_Scope,
.initial_context = &RtemsReqIdent_Instance
}

Definition at line 298 of file tr-object-ident.c.

◆ RtemsReqIdent_PreDesc

const char* const* const RtemsReqIdent_PreDesc[]
static
Initial value:
= {
RtemsReqIdent_PreDesc_Name,
RtemsReqIdent_PreDesc_Node,
RtemsReqIdent_PreDesc_Id,
NULL
}

Definition at line 129 of file tr-object-ident.c.

◆ RtemsReqIdent_PreDesc_Id

const char* const RtemsReqIdent_PreDesc_Id[]
static
Initial value:
= {
"NullPtr",
"Valid",
"NA"
}

Definition at line 123 of file tr-object-ident.c.

◆ RtemsReqIdent_PreDesc_Name

const char* const RtemsReqIdent_PreDesc_Name[]
static
Initial value:
= {
"Invalid",
"Valid",
"NA"
}

Definition at line 107 of file tr-object-ident.c.

◆ RtemsReqIdent_PreDesc_Node

const char* const RtemsReqIdent_PreDesc_Node[]
static
Initial value:
= {
"Local",
"Remote",
"Invalid",
"SearchAll",
"SearchOther",
"SearchLocal",
"NA"
}

Definition at line 113 of file tr-object-ident.c.