RTEMS
Files | Classes | Macros | Enumerations | Functions | Variables
spec:/rtems/part/req/create

Files

file  tc-part-create.c
 

Classes

struct  RtemsPartReqCreate_Context
 Test context for spec:/rtems/part/req/create test case. More...
 

Macros

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

Enumerations

enum  RtemsPartReqCreate_Pre_Id { RtemsPartReqCreate_Pre_Id_Id, RtemsPartReqCreate_Pre_Id_Null, RtemsPartReqCreate_Pre_Id_NA }
 
enum  RtemsPartReqCreate_Pre_Name { RtemsPartReqCreate_Pre_Name_Valid, RtemsPartReqCreate_Pre_Name_Invalid, RtemsPartReqCreate_Pre_Name_NA }
 
enum  RtemsPartReqCreate_Pre_Start { RtemsPartReqCreate_Pre_Start_Valid, RtemsPartReqCreate_Pre_Start_Null, RtemsPartReqCreate_Pre_Start_BadAlign, RtemsPartReqCreate_Pre_Start_NA }
 
enum  RtemsPartReqCreate_Pre_Length { RtemsPartReqCreate_Pre_Length_Valid, RtemsPartReqCreate_Pre_Length_Zero, RtemsPartReqCreate_Pre_Length_Invalid, RtemsPartReqCreate_Pre_Length_NA }
 
enum  RtemsPartReqCreate_Pre_Size { RtemsPartReqCreate_Pre_Size_Valid, RtemsPartReqCreate_Pre_Size_Zero, RtemsPartReqCreate_Pre_Size_Small, RtemsPartReqCreate_Pre_Size_NA }
 
enum  RtemsPartReqCreate_Pre_Parts { RtemsPartReqCreate_Pre_Parts_Avail, RtemsPartReqCreate_Pre_Parts_None, RtemsPartReqCreate_Pre_Parts_NA }
 
enum  RtemsPartReqCreate_Post_Status {
  RtemsPartReqCreate_Post_Status_Ok, RtemsPartReqCreate_Post_Status_InvAddress, RtemsPartReqCreate_Post_Status_InvName, RtemsPartReqCreate_Post_Status_InvNumber,
  RtemsPartReqCreate_Post_Status_InvSize, RtemsPartReqCreate_Post_Status_TooMany, RtemsPartReqCreate_Post_Status_NA
}
 

Functions

static RTEMS_ALIGNED (static RTEMS_ALIGNED RTEMS_PARTITION_ALIGNMENT)
 
static void RtemsPartReqCreate_Pre_Name_Prepare (RtemsPartReqCreate_Context *ctx, RtemsPartReqCreate_Pre_Name state)
 
static void RtemsPartReqCreate_Pre_Start_Prepare (RtemsPartReqCreate_Context *ctx, RtemsPartReqCreate_Pre_Start state)
 
static void RtemsPartReqCreate_Pre_Length_Prepare (RtemsPartReqCreate_Context *ctx, RtemsPartReqCreate_Pre_Length state)
 
static void RtemsPartReqCreate_Pre_Size_Prepare (RtemsPartReqCreate_Context *ctx, RtemsPartReqCreate_Pre_Size state)
 
static void RtemsPartReqCreate_Pre_Parts_Prepare (RtemsPartReqCreate_Context *ctx, RtemsPartReqCreate_Pre_Parts state)
 
static void RtemsPartReqCreate_Post_Status_Check (RtemsPartReqCreate_Context *ctx, RtemsPartReqCreate_Post_Status state)
 
static void RtemsPartReqCreate_Setup (RtemsPartReqCreate_Context *ctx)
 
static void RtemsPartReqCreate_Setup_Wrap (void *arg)
 
static size_t RtemsPartReqCreate_Scope (void *arg, char *buf, size_t n)
 
static void RtemsPartReqCreate_Prepare (RtemsPartReqCreate_Context *ctx)
 
static void RtemsPartReqCreate_Action (RtemsPartReqCreate_Context *ctx)
 
static void RtemsPartReqCreate_Cleanup (RtemsPartReqCreate_Context *ctx)
 
 T_TEST_CASE_FIXTURE (RtemsPartReqCreate, &RtemsPartReqCreate_Fixture)
 

Variables

static RtemsPartReqCreate_Context RtemsPartReqCreate_Instance
 
static const char *const RtemsPartReqCreate_PreDesc_Id []
 
static const char *const RtemsPartReqCreate_PreDesc_Name []
 
static const char *const RtemsPartReqCreate_PreDesc_Start []
 
static const char *const RtemsPartReqCreate_PreDesc_Length []
 
static const char *const RtemsPartReqCreate_PreDesc_Size []
 
static const char *const RtemsPartReqCreate_PreDesc_Parts []
 
static const char *const *const RtemsPartReqCreate_PreDesc []
 
static T_fixture RtemsPartReqCreate_Fixture
 
static const uint8_t RtemsPartReqCreate_TransitionMap [][1]
 
struct {
   uint8_t   Skip: 1
 
   uint8_t   Pre_Id_NA: 1
 
   uint8_t   Pre_Name_NA: 1
 
   uint8_t   Pre_Start_NA: 1
 
   uint8_t   Pre_Length_NA: 1
 
   uint8_t   Pre_Size_NA: 1
 
   uint8_t   Pre_Parts_NA: 1
 
RtemsPartReqCreate_TransitionInfo []
 

Detailed Description

Variable Documentation

◆ RtemsPartReqCreate_Fixture

T_fixture RtemsPartReqCreate_Fixture
static
Initial value:
= {
.setup = RtemsPartReqCreate_Setup_Wrap,
.stop = NULL,
.teardown = NULL,
.scope = RtemsPartReqCreate_Scope,
.initial_context = &RtemsPartReqCreate_Instance
}

Definition at line 494 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc

const char* const* const RtemsPartReqCreate_PreDesc[]
static
Initial value:
= {
RtemsPartReqCreate_PreDesc_Id,
RtemsPartReqCreate_PreDesc_Name,
RtemsPartReqCreate_PreDesc_Start,
RtemsPartReqCreate_PreDesc_Length,
RtemsPartReqCreate_PreDesc_Size,
RtemsPartReqCreate_PreDesc_Parts,
NULL
}

Definition at line 192 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc_Id

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

Definition at line 153 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc_Length

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

Definition at line 172 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc_Name

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

Definition at line 159 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc_Parts

const char* const RtemsPartReqCreate_PreDesc_Parts[]
static
Initial value:
= {
"Avail",
"None",
"NA"
}

Definition at line 186 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc_Size

const char* const RtemsPartReqCreate_PreDesc_Size[]
static
Initial value:
= {
"Valid",
"Zero",
"Small",
"NA"
}

Definition at line 179 of file tc-part-create.c.

◆ RtemsPartReqCreate_PreDesc_Start

const char* const RtemsPartReqCreate_PreDesc_Start[]
static
Initial value:
= {
"Valid",
"Null",
"BadAlign",
"NA"
}

Definition at line 165 of file tc-part-create.c.