RTEMS
Classes | Macros | Enumerations | Functions | Variables
#include <rtems.h>
#include <string.h>
#include <rtems/score/chainimpl.h>
#include <rtems/score/objectimpl.h>
#include <rtems/test.h>

Go to the source code of this file.

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 []