RTEMS
Files | Classes | Macros | Enumerations | Functions | Variables
spec:/rtems/task/req/construct-errors

Files

file  tc-task-construct-errors.c
 

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

Detailed Description

Variable Documentation

◆ extensions

const rtems_extensions_table extensions
static
Initial value:
= {
.thread_create = ThreadCreate
}

Definition at line 253 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_Fixture

T_fixture RtemsTaskReqConstructErrors_Fixture
static
Initial value:
= {
.setup = RtemsTaskReqConstructErrors_Setup_Wrap,
.stop = NULL,
.teardown = RtemsTaskReqConstructErrors_Teardown_Wrap,
.scope = RtemsTaskReqConstructErrors_Scope,
.initial_context = &RtemsTaskReqConstructErrors_Instance
}

Definition at line 589 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc

const char* const* const RtemsTaskReqConstructErrors_PreDesc[]
static
Initial value:
= {
RtemsTaskReqConstructErrors_PreDesc_Id,
RtemsTaskReqConstructErrors_PreDesc_Name,
RtemsTaskReqConstructErrors_PreDesc_Prio,
RtemsTaskReqConstructErrors_PreDesc_Tasks,
RtemsTaskReqConstructErrors_PreDesc_TLS,
RtemsTaskReqConstructErrors_PreDesc_Stack,
RtemsTaskReqConstructErrors_PreDesc_Ext,
RtemsTaskReqConstructErrors_PreDesc_Preempt,
NULL
}

Definition at line 212 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Ext

const char* const RtemsTaskReqConstructErrors_PreDesc_Ext[]
static
Initial value:
= {
"Ok",
"Err",
"NA"
}

Definition at line 200 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Id

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

Definition at line 163 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Name

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

Definition at line 169 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Preempt

const char* const RtemsTaskReqConstructErrors_PreDesc_Preempt[]
static
Initial value:
= {
"Yes",
"No",
"NA"
}

Definition at line 206 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Prio

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

Definition at line 175 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Stack

const char* const RtemsTaskReqConstructErrors_PreDesc_Stack[]
static
Initial value:
= {
"Enough",
"Small",
"NA"
}

Definition at line 194 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_Tasks

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

Definition at line 182 of file tc-task-construct-errors.c.

◆ RtemsTaskReqConstructErrors_PreDesc_TLS

const char* const RtemsTaskReqConstructErrors_PreDesc_TLS[]
static
Initial value:
= {
"Enough",
"Small",
"NA"
}

Definition at line 188 of file tc-task-construct-errors.c.