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  RtemsMessageReqConstructErrors_Context
 Test context for spec:/rtems/message/req/construct-errors test case. More...
 

Macros

#define MAX_MESSAGE_QUEUES   4
 
#define MAX_PENDING_MESSAGES   1
 
#define MAX_MESSAGE_SIZE   1
 

Enumerations

enum  RtemsMessageReqConstructErrors_Pre_Id { RtemsMessageReqConstructErrors_Pre_Id_Id, RtemsMessageReqConstructErrors_Pre_Id_Null, RtemsMessageReqConstructErrors_Pre_Id_NA }
 
enum  RtemsMessageReqConstructErrors_Pre_Name { RtemsMessageReqConstructErrors_Pre_Name_Valid, RtemsMessageReqConstructErrors_Pre_Name_Invalid, RtemsMessageReqConstructErrors_Pre_Name_NA }
 
enum  RtemsMessageReqConstructErrors_Pre_MaxPending { RtemsMessageReqConstructErrors_Pre_MaxPending_Valid, RtemsMessageReqConstructErrors_Pre_MaxPending_Zero, RtemsMessageReqConstructErrors_Pre_MaxPending_Big, RtemsMessageReqConstructErrors_Pre_MaxPending_NA }
 
enum  RtemsMessageReqConstructErrors_Pre_MaxSize { RtemsMessageReqConstructErrors_Pre_MaxSize_Valid, RtemsMessageReqConstructErrors_Pre_MaxSize_Zero, RtemsMessageReqConstructErrors_Pre_MaxSize_Big, RtemsMessageReqConstructErrors_Pre_MaxSize_NA }
 
enum  RtemsMessageReqConstructErrors_Pre_Queues { RtemsMessageReqConstructErrors_Pre_Queues_Avail, RtemsMessageReqConstructErrors_Pre_Queues_None, RtemsMessageReqConstructErrors_Pre_Queues_NA }
 
enum  RtemsMessageReqConstructErrors_Pre_Area { RtemsMessageReqConstructErrors_Pre_Area_Valid, RtemsMessageReqConstructErrors_Pre_Area_Null, RtemsMessageReqConstructErrors_Pre_Area_NA }
 
enum  RtemsMessageReqConstructErrors_Pre_AreaSize { RtemsMessageReqConstructErrors_Pre_AreaSize_Valid, RtemsMessageReqConstructErrors_Pre_AreaSize_Invalid, RtemsMessageReqConstructErrors_Pre_AreaSize_NA }
 
enum  RtemsMessageReqConstructErrors_Post_Status {
  RtemsMessageReqConstructErrors_Post_Status_Ok, RtemsMessageReqConstructErrors_Post_Status_InvAddress, RtemsMessageReqConstructErrors_Post_Status_InvName, RtemsMessageReqConstructErrors_Post_Status_InvNumber,
  RtemsMessageReqConstructErrors_Post_Status_InvSize, RtemsMessageReqConstructErrors_Post_Status_TooMany, RtemsMessageReqConstructErrors_Post_Status_Unsatisfied, RtemsMessageReqConstructErrors_Post_Status_NA
}
 

Functions

static RTEMS_MESSAGE_QUEUE_BUFFER (static RTEMS_MESSAGE_QUEUE_BUFFER MAX_MESSAGE_SIZE)
 
static void RtemsMessageReqConstructErrors_Pre_Name_Prepare (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Pre_Name state)
 
static void RtemsMessageReqConstructErrors_Pre_MaxPending_Prepare (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Pre_MaxPending state)
 
static void RtemsMessageReqConstructErrors_Pre_MaxSize_Prepare (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Pre_MaxSize state)
 
static void RtemsMessageReqConstructErrors_Pre_Queues_Prepare (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Pre_Queues state)
 
static void RtemsMessageReqConstructErrors_Pre_Area_Prepare (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Pre_Area state)
 
static void RtemsMessageReqConstructErrors_Pre_AreaSize_Prepare (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Pre_AreaSize state)
 
static void RtemsMessageReqConstructErrors_Post_Status_Check (RtemsMessageReqConstructErrors_Context *ctx, RtemsMessageReqConstructErrors_Post_Status state)
 
static void RtemsMessageReqConstructErrors_Setup (RtemsMessageReqConstructErrors_Context *ctx)
 
static void RtemsMessageReqConstructErrors_Setup_Wrap (void *arg)
 
static size_t RtemsMessageReqConstructErrors_Scope (void *arg, char *buf, size_t n)
 
static void RtemsMessageReqConstructErrors_Prepare (RtemsMessageReqConstructErrors_Context *ctx)
 
static void RtemsMessageReqConstructErrors_Action (RtemsMessageReqConstructErrors_Context *ctx)
 
static void RtemsMessageReqConstructErrors_Cleanup (RtemsMessageReqConstructErrors_Context *ctx)
 
 T_TEST_CASE_FIXTURE (RtemsMessageReqConstructErrors, &RtemsMessageReqConstructErrors_Fixture)
 

Variables

static RtemsMessageReqConstructErrors_Context RtemsMessageReqConstructErrors_Instance
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_Id []
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_Name []
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_MaxPending []
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_MaxSize []
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_Queues []
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_Area []
 
static const char *const RtemsMessageReqConstructErrors_PreDesc_AreaSize []
 
static const char *const *const RtemsMessageReqConstructErrors_PreDesc []
 
static T_fixture RtemsMessageReqConstructErrors_Fixture
 
static const uint8_t RtemsMessageReqConstructErrors_TransitionMap [][1]
 
struct {
   uint8_t   Skip: 1
 
   uint8_t   Pre_Id_NA: 1
 
   uint8_t   Pre_Name_NA: 1
 
   uint8_t   Pre_MaxPending_NA: 1
 
   uint8_t   Pre_MaxSize_NA: 1
 
   uint8_t   Pre_Queues_NA: 1
 
   uint8_t   Pre_Area_NA: 1
 
   uint8_t   Pre_AreaSize_NA: 1
 
RtemsMessageReqConstructErrors_TransitionInfo []