RTEMS
Files | Classes | Macros | Enumerations | Functions | Variables
spec:/rtems/part/req/get-buffer

Files

file  tc-part-get.c
 

Classes

struct  RtemsPartReqGetBuffer_Context
 Test context for spec:/rtems/part/req/get-buffer test case. More...
 

Macros

#define PART_NAME   rtems_build_name( 'N', 'A', 'M', 'E' )
 
#define BUFFER_COUNT   1
 
#define BUFFER_SIZE   ( 2 * sizeof( void * ) )
 

Enumerations

enum  RtemsPartReqGetBuffer_Pre_Id { RtemsPartReqGetBuffer_Pre_Id_Id, RtemsPartReqGetBuffer_Pre_Id_Invalid, RtemsPartReqGetBuffer_Pre_Id_NA }
 
enum  RtemsPartReqGetBuffer_Pre_InUse { RtemsPartReqGetBuffer_Pre_InUse_True, RtemsPartReqGetBuffer_Pre_InUse_False, RtemsPartReqGetBuffer_Pre_InUse_NA }
 
enum  RtemsPartReqGetBuffer_Post_Status { RtemsPartReqGetBuffer_Post_Status_Ok, RtemsPartReqGetBuffer_Post_Status_InvId, RtemsPartReqGetBuffer_Post_Status_InUse, RtemsPartReqGetBuffer_Post_Status_NA }
 

Functions

static RTEMS_ALIGNED (RTEMS_PARTITION_ALIGNMENT)
 
static void RtemsPartReqGetBuffer_Pre_InUse_Prepare (RtemsPartReqGetBuffer_Context *ctx, RtemsPartReqGetBuffer_Pre_InUse state)
 
static void RtemsPartReqGetBuffer_Post_Status_Check (RtemsPartReqGetBuffer_Context *ctx, RtemsPartReqGetBuffer_Post_Status state)
 
static size_t RtemsPartReqGetBuffer_Scope (void *arg, char *buf, size_t n)
 
static void RtemsPartReqGetBuffer_Prepare (RtemsPartReqGetBuffer_Context *ctx)
 
static void RtemsPartReqGetBuffer_Action (RtemsPartReqGetBuffer_Context *ctx)
 
static void RtemsPartReqGetBuffer_Cleanup (RtemsPartReqGetBuffer_Context *ctx)
 
 T_TEST_CASE_FIXTURE (RtemsPartReqGetBuffer, &RtemsPartReqGetBuffer_Fixture)
 

Variables

static RtemsPartReqGetBuffer_Context RtemsPartReqGetBuffer_Instance
 
static const char *const RtemsPartReqGetBuffer_PreDesc_Id []
 
static const char *const RtemsPartReqGetBuffer_PreDesc_InUse []
 
static const char *const *const RtemsPartReqGetBuffer_PreDesc []
 
static T_fixture RtemsPartReqGetBuffer_Fixture
 
static const uint8_t RtemsPartReqGetBuffer_TransitionMap [][1]
 
struct {
   uint8_t   Skip: 1
 
   uint8_t   Pre_Id_NA: 1
 
   uint8_t   Pre_InUse_NA: 1
 
RtemsPartReqGetBuffer_TransitionInfo []
 

Detailed Description

Variable Documentation

◆ RtemsPartReqGetBuffer_Fixture

T_fixture RtemsPartReqGetBuffer_Fixture
static
Initial value:
= {
.setup = NULL,
.stop = NULL,
.teardown = NULL,
.scope = RtemsPartReqGetBuffer_Scope,
.initial_context = &RtemsPartReqGetBuffer_Instance
}

Definition at line 237 of file tc-part-get.c.

◆ RtemsPartReqGetBuffer_PreDesc

const char* const* const RtemsPartReqGetBuffer_PreDesc[]
static
Initial value:
= {
RtemsPartReqGetBuffer_PreDesc_Id,
RtemsPartReqGetBuffer_PreDesc_InUse,
NULL
}

Definition at line 122 of file tc-part-get.c.

◆ RtemsPartReqGetBuffer_PreDesc_Id

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

Definition at line 110 of file tc-part-get.c.

◆ RtemsPartReqGetBuffer_PreDesc_InUse

const char* const RtemsPartReqGetBuffer_PreDesc_InUse[]
static
Initial value:
= {
"True",
"False",
"NA"
}

Definition at line 116 of file tc-part-get.c.

◆ RtemsPartReqGetBuffer_TransitionInfo

const { ... } RtemsPartReqGetBuffer_TransitionInfo[]
Initial value:
= {
{
0, 0, 0
}, {
0, 0, 0
}, {
0, 0, 0
}, {
0, 0, 0
}
}

◆ RtemsPartReqGetBuffer_TransitionMap

const uint8_t RtemsPartReqGetBuffer_TransitionMap[][1]
static
Initial value:
= {
{
RtemsPartReqGetBuffer_Post_Status_InUse
}, {
RtemsPartReqGetBuffer_Post_Status_Ok
}, {
RtemsPartReqGetBuffer_Post_Status_InvId
}, {
RtemsPartReqGetBuffer_Post_Status_InvId
}
}

Definition at line 245 of file tc-part-get.c.