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

Go to the source code of this file.

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