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

Macros

#define MAX_TLS_SIZE   RTEMS_ALIGN_UP( 128, RTEMS_TASK_STORAGE_ALIGNMENT )
 

Enumerations

enum  RtemsTaskReqConstructErrors_Pre_Id { RtemsTaskReqConstructErrors_Pre_Id_Id, RtemsTaskReqConstructErrors_Pre_Id_Null, RtemsTaskReqConstructErrors_Pre_Id_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_Name { RtemsTaskReqConstructErrors_Pre_Name_Valid, RtemsTaskReqConstructErrors_Pre_Name_Inv, RtemsTaskReqConstructErrors_Pre_Name_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_Prio { RtemsTaskReqConstructErrors_Pre_Prio_Valid, RtemsTaskReqConstructErrors_Pre_Prio_Zero, RtemsTaskReqConstructErrors_Pre_Prio_Inv, RtemsTaskReqConstructErrors_Pre_Prio_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_Tasks { RtemsTaskReqConstructErrors_Pre_Tasks_Avail, RtemsTaskReqConstructErrors_Pre_Tasks_None, RtemsTaskReqConstructErrors_Pre_Tasks_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_TLS { RtemsTaskReqConstructErrors_Pre_TLS_Enough, RtemsTaskReqConstructErrors_Pre_TLS_Small, RtemsTaskReqConstructErrors_Pre_TLS_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_Stack { RtemsTaskReqConstructErrors_Pre_Stack_Enough, RtemsTaskReqConstructErrors_Pre_Stack_Small, RtemsTaskReqConstructErrors_Pre_Stack_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_Ext { RtemsTaskReqConstructErrors_Pre_Ext_Ok, RtemsTaskReqConstructErrors_Pre_Ext_Err, RtemsTaskReqConstructErrors_Pre_Ext_NA }
 
enum  RtemsTaskReqConstructErrors_Pre_Preempt { RtemsTaskReqConstructErrors_Pre_Preempt_Yes, RtemsTaskReqConstructErrors_Pre_Preempt_No, RtemsTaskReqConstructErrors_Pre_Preempt_NA }
 
enum  RtemsTaskReqConstructErrors_Post_Status {
  RtemsTaskReqConstructErrors_Post_Status_Ok, RtemsTaskReqConstructErrors_Post_Status_InvAddress, RtemsTaskReqConstructErrors_Post_Status_InvName, RtemsTaskReqConstructErrors_Post_Status_InvPrio,
  RtemsTaskReqConstructErrors_Post_Status_InvSize, RtemsTaskReqConstructErrors_Post_Status_TooMany, RtemsTaskReqConstructErrors_Post_Status_Unsatisfied, RtemsTaskReqConstructErrors_Post_Status_NA
}
 

Functions

 RTEMS_ALIGNED (RTEMS_TASK_STORAGE_ALIGNMENT)
 
static bool ThreadCreate (rtems_tcb *executing, rtems_tcb *created)
 
static void RtemsTaskReqConstructErrors_Pre_Id_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Id state)
 
static void RtemsTaskReqConstructErrors_Pre_Name_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Name state)
 
static void RtemsTaskReqConstructErrors_Pre_Prio_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Prio state)
 
static void RtemsTaskReqConstructErrors_Pre_Tasks_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Tasks state)
 
static void RtemsTaskReqConstructErrors_Pre_TLS_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_TLS state)
 
static void RtemsTaskReqConstructErrors_Pre_Stack_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Stack state)
 
static void RtemsTaskReqConstructErrors_Pre_Ext_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Ext state)
 
static void RtemsTaskReqConstructErrors_Pre_Preempt_Prepare (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Pre_Preempt state)
 
static void RtemsTaskReqConstructErrors_Post_Status_Check (RtemsTaskReqConstructErrors_Context *ctx, RtemsTaskReqConstructErrors_Post_Status state)
 
static void RtemsTaskReqConstructErrors_Setup (RtemsTaskReqConstructErrors_Context *ctx)
 
static void RtemsTaskReqConstructErrors_Setup_Wrap (void *arg)
 
static void RtemsTaskReqConstructErrors_Teardown (RtemsTaskReqConstructErrors_Context *ctx)
 
static void RtemsTaskReqConstructErrors_Teardown_Wrap (void *arg)
 
static size_t RtemsTaskReqConstructErrors_Scope (void *arg, char *buf, size_t n)
 
static void RtemsTaskReqConstructErrors_Prepare (RtemsTaskReqConstructErrors_Context *ctx)
 
static void RtemsTaskReqConstructErrors_Action (RtemsTaskReqConstructErrors_Context *ctx)
 
static void RtemsTaskReqConstructErrors_Cleanup (RtemsTaskReqConstructErrors_Context *ctx)
 
 T_TEST_CASE_FIXTURE (RtemsTaskReqConstructErrors, &RtemsTaskReqConstructErrors_Fixture)
 

Variables

static RtemsTaskReqConstructErrors_Context RtemsTaskReqConstructErrors_Instance
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Id []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Name []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Prio []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Tasks []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_TLS []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Stack []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Ext []
 
static const char *const RtemsTaskReqConstructErrors_PreDesc_Preempt []
 
static const char *const *const RtemsTaskReqConstructErrors_PreDesc []
 
static _Thread_local int tls_variable
 
static const rtems_extensions_table extensions
 
static T_fixture RtemsTaskReqConstructErrors_Fixture
 
static const uint8_t RtemsTaskReqConstructErrors_TransitionMap [][1]
 
struct {
   uint16_t   Skip: 1
 
   uint16_t   Pre_Id_NA: 1
 
   uint16_t   Pre_Name_NA: 1
 
   uint16_t   Pre_Prio_NA: 1
 
   uint16_t   Pre_Tasks_NA: 1
 
   uint16_t   Pre_TLS_NA: 1
 
   uint16_t   Pre_Stack_NA: 1
 
   uint16_t   Pre_Ext_NA: 1
 
   uint16_t   Pre_Preempt_NA: 1
 
RtemsTaskReqConstructErrors_TransitionInfo []