Crinit -- Configurable Rootfs Init
case-crinit-response-cmd-error.c File Reference

(2023-10-16, commit: 49337e0)

Unit test for crinitClientTaskAdd() testing error handling for wrong command in response. More...

#include "common.h"
#include "crinit-client.h"
#include "rtimcmd.h"
#include "unit_test.h"
#include "utest-crinit-task-add.h"
Include dependency graph for case-crinit-response-cmd-error.c:

Macros

#define TEST_CONFIG_FILE   "/test/config/file"
 
#define TEST_FORCE_DEPS   "foo:wait"
 

Functions

void crinitClientTaskAddTestCrinitResponseCmdError (void **state)
 

Variables

static crinitRtimCmd_tcrinitBuildRtimArgCmd
 
static crinitRtimCmd_tcrinitXferArgRes
 
static char * crinitXferArgResOKArgs [1] = {CRINIT_RTIMCMD_RES_OK}
 
static crinitRtimCmd_t crinitXferArgResWrongCmd
 
static struct crinitStoreRtimCmdArgs crinitXferArgResContext
 

Detailed Description

Unit test for crinitClientTaskAdd() testing error handling for wrong command in response.

Macro Definition Documentation

◆ TEST_CONFIG_FILE

#define TEST_CONFIG_FILE   "/test/config/file"

◆ TEST_FORCE_DEPS

#define TEST_FORCE_DEPS   "foo:wait"

Function Documentation

◆ crinitClientTaskAddTestCrinitResponseCmdError()

void crinitClientTaskAddTestCrinitResponseCmdError ( void **  state)

Unit test for crinitClientTaskAdd() testing error handling for wrong command in response.

Variable Documentation

◆ crinitBuildRtimArgCmd

crinitRtimCmd_t* crinitBuildRtimArgCmd
static

◆ crinitXferArgRes

crinitRtimCmd_t* crinitXferArgRes
static

◆ crinitXferArgResContext

struct crinitStoreRtimCmdArgs crinitXferArgResContext
static
Initial value:
= {
}
static crinitRtimCmd_t * crinitXferArgRes
Definition: case-crinit-response-cmd-error.c:17
static crinitRtimCmd_t crinitXferArgResWrongCmd
Definition: case-crinit-response-cmd-error.c:19

◆ crinitXferArgResOKArgs

char* crinitXferArgResOKArgs[1] = {CRINIT_RTIMCMD_RES_OK}
static

◆ crinitXferArgResWrongCmd

crinitRtimCmd_t crinitXferArgResWrongCmd
static
Initial value:
= {
.op = CRINIT_RTIMCMD_R_ENABLE, .argc = 1, .args = crinitXferArgResOKArgs}
static char * crinitXferArgResOKArgs[1]
Definition: case-crinit-response-cmd-error.c:18